Skip to content

Commit 72f9087

Browse files
committed
Fix writing logfiles to filessytem
1 parent c94a85b commit 72f9087

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install/assets/functions/10-db-backup

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,10 +1761,10 @@ write_log() {
17611761
write_to_file=false
17621762
fi
17631763

1764-
case "${1}" in
1764+
case "${_arg_log_level,,}" in
17651765
debug )
17661766
CONTAINER_LOG_LEVEL=DEBUG
1767-
case "${backup_job_log_level,,}" in
1767+
case "${_arg_log_level,,}" in
17681768
"debug" )
17691769
print_debug "${_arg_log_message}"
17701770
if var_true "${write_to_file}" ; then
@@ -1776,7 +1776,7 @@ write_log() {
17761776
;;
17771777
error )
17781778
CONTAINER_LOG_LEVEL=ERROR
1779-
case "${backup_job_log_level,,}" in
1779+
case "${_arg_log_level,,}" in
17801780
"debug" | "notice" | "warn" | "error")
17811781
print_error "${_arg_log_message}"
17821782
if var_true "${write_to_file}" ; then
@@ -1794,7 +1794,7 @@ write_log() {
17941794
;;
17951795
notice )
17961796
CONTAINER_LOG_LEVEL=NOTICE
1797-
case "${backup_job_log_level,,}" in
1797+
case "${_arg_log_level,,}" in
17981798
"debug" | "notice" )
17991799
print_notice "${_arg_log_message}"
18001800
if var_true "${write_to_file}" ; then
@@ -1805,7 +1805,7 @@ write_log() {
18051805
;;
18061806
warn )
18071807
CONTAINER_LOG_LEVEL=WARN
1808-
case "${backup_job_log_level,,}" in
1808+
case "${_arg_log_level,,}" in
18091809
"debug" | "notice" | "warn" )
18101810
print_warn "${_arg_log_message}"
18111811
if var_true "${write_to_file}" ; then

0 commit comments

Comments
 (0)