Add configurable default log level

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-12-13 19:01:55 +01:00
parent 498e139266
commit 0093c732dc
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -41,7 +41,8 @@ function log_level_matches() {
[warning]=2 [warning]=2
[error]=3 [error]=3
) )
[ ${log_levels[${LOG_LEVEL:-UNDEF}]:-1} -le ${1} ] && return 0 || return 1 local fb_ll=${log_levels[${DEFAULT_LOG_LEVEL:-info}]}
[ ${log_levels[${LOG_LEVEL:-UNDEF}]:-${fb_ll}} -le ${1} ] && return 0 || return 1
} }
function step() { function step() {