Revision 13217
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
545 | 545 |
highlight_log_msg() # usage: [format=...] highlight_log_msg msg |
546 | 546 |
# format: the # in xfree86.org/current/ctlseqs.html#Character_Attributes |
547 | 547 |
{ |
548 |
kw_params format; local format="${format-1}" # bold |
|
548 |
log_local; log+ 2; echo_func; kw_params format; log- 2 |
|
549 |
local format="${format-1}" # bold |
|
549 | 550 |
if ! can_highlight_log_msg; then format=; fi |
550 | 551 |
format "$format" "$1" |
551 | 552 |
} |
Also available in: Unified diff
lib/sh/util.sh: highlight_log_msg(): log at higher log_level, since this is logging code