scripts: loglevel warning message fix (#2588)
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
parent
0b909b2a32
commit
777d4a8cb7
|
@ -34,11 +34,10 @@ function _check_log_level
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
local DEFAULT_LOG_LEVEL='info'
|
local DEFAULT_LOG_LEVEL='info'
|
||||||
|
_log 'warn' "Log level '${LOG_LEVEL}' is invalid (falling back to default '${DEFAULT_LOG_LEVEL}')"
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
VARS[LOG_LEVEL]="${DEFAULT_LOG_LEVEL}"
|
VARS[LOG_LEVEL]="${DEFAULT_LOG_LEVEL}"
|
||||||
LOG_LEVEL="${DEFAULT_LOG_LEVEL}"
|
LOG_LEVEL="${DEFAULT_LOG_LEVEL}"
|
||||||
|
|
||||||
_log 'warn' "Log level '${LOG_LEVEL}' is invalid (falling back to default '${DEFAULT_LOG_LEVEL}')"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue