Skip to content

Commit

Permalink
Fix writing logfiles to filessytem
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 7, 2023
1 parent c94a85b commit 72f9087
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install/assets/functions/10-db-backup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 72f9087

Please sign in to comment.