Debian Codegraph @

doc/example/inhibit-report-info/siteconfig.tcl

raw
1 #
2 # siteconfig.tcl - Site specific configuration changing reportInfo to inhibit
3 # to report info messages (like the summaries about the additional load and
4 # unload triggered during a module load or unload action) depending on a
5 # global variable value.
6 #
7 # Author: Wenzler
8 # Compatibility: Modules v4.2
9 #
10 # Installation: put this file in the 'etc' directory of your Modules
11 # installation. Refer to the "Modulecmd startup" section in the
12 # module(1) man page to get this location.
13
14 set g_inhibit_inforeport 1 ;# Non-critical info reporting disabled if == 1
15
16 # override 'reportInfo' procedure to inhibit messages if g_inhibit_inforeport
17 # is set to 1
18 proc reportInfo {message {title INFO}} {
19 if {!$::g_inhibit_inforeport} {
20 # use reportError for convenience but there is no error here
21 reportError $message 0 $title 0
22 }
23 }
24
25 # vim:set tabstop=3 shiftwidth=3 expandtab autoindent: