Revision 9113
Added by Aaron Marcuse-Kubitza about 11 years ago
util.sh | ||
---|---|---|
253 | 253 |
if ! can_log; then exec 2>/dev/null; fi |
254 | 254 |
if test "$stdout2stderr"; then stdout2stderr; fi |
255 | 255 |
} |
256 |
alias limit_stderr='limit_stderr; inc_log_level'
|
|
256 |
alias limit_stderr='inc_log_level; limit_stderr'
|
|
257 | 257 |
|
258 | 258 |
limit_stderr_cmd() # usage: [stdout2stderr=1] limit_stderr_cmd cmd... |
259 | 259 |
{ |
Also available in: Unified diff
bugfix: lib/sh/util.sh: limit_stderr alias: need to inc_log_level before rather than after limit_stderr(), so that can_log uses the right verbosity (previously, inc_log_level was part of limit_stderr() itself, but was moved to the alias because its effects were needed outside the function)