1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-07-15 07:14:46 +02:00

scripts: loglevel warning message fix (#2588)

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Maximilian Hippler
2022-05-13 10:50:45 +02:00
committed by GitHub
parent 0b909b2a32
commit 777d4a8cb7

View File

@ -34,11 +34,10 @@ function _check_log_level
return 0
else
local DEFAULT_LOG_LEVEL='info'
_log 'warn' "Log level '${LOG_LEVEL}' is invalid (falling back to default '${DEFAULT_LOG_LEVEL}')"
# shellcheck disable=SC2034
VARS[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
}