Fix writing logfiles to filessytem

This commit is contained in:
Dave Conroy
2023-11-06 17:00:29 -08:00
parent c94a85b523
commit 72f90876e3

View File

@@ -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