Revision 9382
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
247 | 247 |
|
248 | 248 |
|
249 | 249 |
# indent for call tree. this is *not* the log_level (below). |
250 |
: "${log_level_indent=| }" "${log_indent=}"
|
|
251 |
export log_level_indent log_indent # propagate to invoked commands
|
|
250 |
: "${log_indent_step=| }" "${log_indent=}"
|
|
251 |
export log_indent_step log_indent # propagate to invoked commands
|
|
252 | 252 |
|
253 |
__caller_indent='log_indent="$log_indent$log_level_indent"'
|
|
253 |
__caller_indent='log_indent="$log_indent$log_indent_step"'
|
|
254 | 254 |
alias caller_indent="$__caller_indent" |
255 | 255 |
alias indent="declare $__caller_indent" |
256 | 256 |
|
Also available in: Unified diff
lib/sh/util.sh: logging: renamed $log_level_indent to $log_indent_step to avoid confusion with the log_level, which is a different kind of indent (using + signs instead of |s)