Project

General

Profile

« Previous | Next » 

Revision 9287

lib/sh/util.sh: logging: log_level definition: replaced command with message because not just commands can be logged

View differences:

util.sh
173 173
: "${verbosity:=0}" # ensure non-empty
174 174
export verbosity # propagate to invoked commands
175 175

  
176
# definition: the log_level is the minimum verbosity needed to display a command
177
# for commands that use can_log(), the log_level starts with *1*, not 0
178
# for unfiltered commands, the log_level is 0 (i.e. still output at verbosity=0)
176
# definition: the log_level is the minimum verbosity needed to display a message
177
# for messages that use can_log(), the log_level starts with *1*, not 0
178
# for unfiltered messages, the log_level is 0 (i.e. still output at verbosity=0)
179 179

  
180 180
: "${log_level_indent=| }" "${log_indent=}"
181 181
export log_level_indent log_indent # propagate to invoked commands

Also available in: Unified diff