mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-31 16:15:04 +02:00
chore: variables-stack.sh
- Rename check method for LOG_LEVEL
This commit is contained in:
parent
0ae753548f
commit
6a2057e731
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
declare -A VARS
|
declare -A VARS
|
||||||
|
|
||||||
function _early_variables_setup() {
|
function _early_variables_setup() {
|
||||||
__environment_variables_log_level
|
__ensure_valid_log_level
|
||||||
__environment_variables_from_files
|
__environment_variables_from_files
|
||||||
_obtain_hostname_and_domainname
|
_obtain_hostname_and_domainname
|
||||||
__environment_variables_backwards_compatibility
|
__environment_variables_backwards_compatibility
|
||||||
|
@ -182,7 +182,7 @@ function __environment_variables_general_setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# `LOG_LEVEL` must be set early to correctly filter calls to `scripts/helpers/log.sh:_log()`
|
# `LOG_LEVEL` must be set early to correctly filter calls to `scripts/helpers/log.sh:_log()`
|
||||||
function __environment_variables_log_level() {
|
function __ensure_valid_log_level() {
|
||||||
if [[ ! ${LOG_LEVEL:-info} =~ ^(trace|debug|info|warn|error)$ ]]; then
|
if [[ ! ${LOG_LEVEL:-info} =~ ^(trace|debug|info|warn|error)$ ]]; then
|
||||||
_log 'warn' "Log level '${LOG_LEVEL}' is invalid (falling back to default: 'info')"
|
_log 'warn' "Log level '${LOG_LEVEL}' is invalid (falling back to default: 'info')"
|
||||||
LOG_LEVEL='info'
|
LOG_LEVEL='info'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue