fix: set default log_level to "warn" when missing in settings

This commit is contained in:
Andrey Petelin
2026-01-22 21:02:15 +05:00
parent c30160d8d3
commit 41a4f67fd0

View File

@@ -591,7 +591,7 @@ sing_box_configure_log() {
log "Configure the log section of a sing-box JSON configuration"
local log_level
config_get log_level "settings" "log_level"
config_get log_level "settings" "log_level" "warn"
config=$(sing_box_cm_configure_log "$config" false "$log_level" false)
}