From 6a2057e7315c46a0f35a330164e515f92261f314 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Mon, 2 Jun 2025 10:04:24 +1200 Subject: [PATCH] chore: `variables-stack.sh` - Rename check method for `LOG_LEVEL` --- target/scripts/startup/variables-stack.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/scripts/startup/variables-stack.sh b/target/scripts/startup/variables-stack.sh index 1b337471..e41df37d 100644 --- a/target/scripts/startup/variables-stack.sh +++ b/target/scripts/startup/variables-stack.sh @@ -4,7 +4,7 @@ declare -A VARS function _early_variables_setup() { - __environment_variables_log_level + __ensure_valid_log_level __environment_variables_from_files _obtain_hostname_and_domainname __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()` -function __environment_variables_log_level() { +function __ensure_valid_log_level() { if [[ ! ${LOG_LEVEL:-info} =~ ^(trace|debug|info|warn|error)$ ]]; then _log 'warn' "Log level '${LOG_LEVEL}' is invalid (falling back to default: 'info')" LOG_LEVEL='info'