Revision 9064
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
148 | 148 |
|
149 | 149 |
can_log () { test "$verbosity" -gt 0; } # verbosity=0 turns off all logging |
150 | 150 |
|
151 |
log () { if can_log; then echo "$PS4$1" >&2; fi; } |
|
152 |
|
|
151 | 153 |
: "${log_indent= }" |
152 | 154 |
|
153 | 155 |
# usage: in func: inc_log_level; ... |
Also available in: Unified diff
lib/sh/util.sh: added log ()