Revision 9242
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
196 | 196 |
|
197 | 197 |
# usage: symbol=... log_custom msg |
198 | 198 |
log_custom() |
199 |
{ |
|
200 |
local log_indent="${log_indent//[^ ]/$symbol}" PS4="${PS4//[^ ]/$symbol}" |
|
201 |
log "$@" |
|
202 |
} |
|
199 |
{ log_indent="${log_indent//[^ ]/$symbol}" PS4="${PS4//[^ ]/$symbol}" log "$@";} |
|
203 | 200 |
|
204 | 201 |
log_err() { symbol=* verbosity=1 log_fd="$err_fd" log_custom "$@"; } |
205 | 202 |
|
Also available in: Unified diff
lib/sh/util.sh: log_custom(): use keyword-args syntax instead of local vars