mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Fix writing logfiles to filessytem
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user