From 72f90876e3431593336cb3199c26b73fe74af4e7 Mon Sep 17 00:00:00 2001 From: Dave Conroy Date: Mon, 6 Nov 2023 17:00:29 -0800 Subject: [PATCH] Fix writing logfiles to filessytem --- install/assets/functions/10-db-backup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/assets/functions/10-db-backup b/install/assets/functions/10-db-backup index 4413f49..5add9f4 100644 --- a/install/assets/functions/10-db-backup +++ b/install/assets/functions/10-db-backup @@ -1761,10 +1761,10 @@ write_log() { write_to_file=false fi - case "${1}" in + case "${_arg_log_level,,}" in debug ) CONTAINER_LOG_LEVEL=DEBUG - case "${backup_job_log_level,,}" in + case "${_arg_log_level,,}" in "debug" ) print_debug "${_arg_log_message}" if var_true "${write_to_file}" ; then @@ -1776,7 +1776,7 @@ write_log() { ;; error ) CONTAINER_LOG_LEVEL=ERROR - case "${backup_job_log_level,,}" in + case "${_arg_log_level,,}" in "debug" | "notice" | "warn" | "error") print_error "${_arg_log_message}" if var_true "${write_to_file}" ; then @@ -1794,7 +1794,7 @@ write_log() { ;; notice ) CONTAINER_LOG_LEVEL=NOTICE - case "${backup_job_log_level,,}" in + case "${_arg_log_level,,}" in "debug" | "notice" ) print_notice "${_arg_log_message}" if var_true "${write_to_file}" ; then @@ -1805,7 +1805,7 @@ write_log() { ;; warn ) CONTAINER_LOG_LEVEL=WARN - case "${backup_job_log_level,,}" in + case "${_arg_log_level,,}" in "debug" | "notice" | "warn" ) print_warn "${_arg_log_message}" if var_true "${write_to_file}" ; then