Fix precedence order of log levels

This commit is contained in:
Nick Chambers 2021-11-06 19:50:18 -05:00
parent 030b67a183
commit c837e1a84f
1 changed files with 1 additions and 1 deletions

2
rowbot
View File

@ -284,7 +284,7 @@ log_has_level() {
}
on_sys_init_001_log() {
declare -gA log_levels=( [debug]=1 [info]=2 [warn]=3 [error]=4 [trace]=5 )
declare -gA log_levels=( [trace]=1 [debug]=2 [info]=3 [warn]=4 [error]=5 )
get_option log-level info
if ! log_has_level "${config[log-level]}"; then