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
|
write_to_file=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${1}" in
|
case "${_arg_log_level,,}" in
|
||||||
debug )
|
debug )
|
||||||
CONTAINER_LOG_LEVEL=DEBUG
|
CONTAINER_LOG_LEVEL=DEBUG
|
||||||
case "${backup_job_log_level,,}" in
|
case "${_arg_log_level,,}" in
|
||||||
"debug" )
|
"debug" )
|
||||||
print_debug "${_arg_log_message}"
|
print_debug "${_arg_log_message}"
|
||||||
if var_true "${write_to_file}" ; then
|
if var_true "${write_to_file}" ; then
|
||||||
@@ -1776,7 +1776,7 @@ write_log() {
|
|||||||
;;
|
;;
|
||||||
error )
|
error )
|
||||||
CONTAINER_LOG_LEVEL=ERROR
|
CONTAINER_LOG_LEVEL=ERROR
|
||||||
case "${backup_job_log_level,,}" in
|
case "${_arg_log_level,,}" in
|
||||||
"debug" | "notice" | "warn" | "error")
|
"debug" | "notice" | "warn" | "error")
|
||||||
print_error "${_arg_log_message}"
|
print_error "${_arg_log_message}"
|
||||||
if var_true "${write_to_file}" ; then
|
if var_true "${write_to_file}" ; then
|
||||||
@@ -1794,7 +1794,7 @@ write_log() {
|
|||||||
;;
|
;;
|
||||||
notice )
|
notice )
|
||||||
CONTAINER_LOG_LEVEL=NOTICE
|
CONTAINER_LOG_LEVEL=NOTICE
|
||||||
case "${backup_job_log_level,,}" in
|
case "${_arg_log_level,,}" in
|
||||||
"debug" | "notice" )
|
"debug" | "notice" )
|
||||||
print_notice "${_arg_log_message}"
|
print_notice "${_arg_log_message}"
|
||||||
if var_true "${write_to_file}" ; then
|
if var_true "${write_to_file}" ; then
|
||||||
@@ -1805,7 +1805,7 @@ write_log() {
|
|||||||
;;
|
;;
|
||||||
warn )
|
warn )
|
||||||
CONTAINER_LOG_LEVEL=WARN
|
CONTAINER_LOG_LEVEL=WARN
|
||||||
case "${backup_job_log_level,,}" in
|
case "${_arg_log_level,,}" in
|
||||||
"debug" | "notice" | "warn" )
|
"debug" | "notice" | "warn" )
|
||||||
print_warn "${_arg_log_message}"
|
print_warn "${_arg_log_message}"
|
||||||
if var_true "${write_to_file}" ; then
|
if var_true "${write_to_file}" ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user