Skip to content

Commit

Permalink
lisper fizz
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmccracken committed Dec 27, 2024
1 parent 2ab2e6a commit cd2e519
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ws_tool/lib/logging.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ log_level_num() {
local lvl_num msg_lvl
msg_lvl="$1"
case "$msg_lvl" in
emerg) lvl_num=1;;
alert) lvl_num=2;;
crit) lvl_num=3;;
error) lvl_num=4;;
warn) lvl_num=5;;
notice) lvl_num=6;;
info) lvl_num=7;;
debug) lvl_num=8;;
*) lvl_num=8;; # default at debug, something is wrong
(emerg) lvl_num=1;;
(alert) lvl_num=2;;
(crit) lvl_num=3;;
(error) lvl_num=4;;
(warn) lvl_num=5;;
(notice) lvl_num=6;;
(info) lvl_num=7;;
(debug) lvl_num=8;;
(*) lvl_num=8;; # default at debug, something is wrong
esac;
REPLY=("$lvl_num");
return 0
Expand Down

0 comments on commit cd2e519

Please sign in to comment.