@@ -1761,10 +1761,10 @@ write_log() {
1761
1761
write_to_file=false
1762
1762
fi
1763
1763
1764
- case "${1 }" in
1764
+ case "${_arg_log_level,, }" in
1765
1765
debug )
1766
1766
CONTAINER_LOG_LEVEL=DEBUG
1767
- case "${backup_job_log_level ,,}" in
1767
+ case "${_arg_log_level ,,}" in
1768
1768
"debug" )
1769
1769
print_debug "${_arg_log_message}"
1770
1770
if var_true "${write_to_file}" ; then
@@ -1776,7 +1776,7 @@ write_log() {
1776
1776
;;
1777
1777
error )
1778
1778
CONTAINER_LOG_LEVEL=ERROR
1779
- case "${backup_job_log_level ,,}" in
1779
+ case "${_arg_log_level ,,}" in
1780
1780
"debug" | "notice" | "warn" | "error")
1781
1781
print_error "${_arg_log_message}"
1782
1782
if var_true "${write_to_file}" ; then
@@ -1794,7 +1794,7 @@ write_log() {
1794
1794
;;
1795
1795
notice )
1796
1796
CONTAINER_LOG_LEVEL=NOTICE
1797
- case "${backup_job_log_level ,,}" in
1797
+ case "${_arg_log_level ,,}" in
1798
1798
"debug" | "notice" )
1799
1799
print_notice "${_arg_log_message}"
1800
1800
if var_true "${write_to_file}" ; then
@@ -1805,7 +1805,7 @@ write_log() {
1805
1805
;;
1806
1806
warn )
1807
1807
CONTAINER_LOG_LEVEL=WARN
1808
- case "${backup_job_log_level ,,}" in
1808
+ case "${_arg_log_level ,,}" in
1809
1809
"debug" | "notice" | "warn" )
1810
1810
print_warn "${_arg_log_message}"
1811
1811
if var_true "${write_to_file}" ; then
0 commit comments