From b9f0e0d06187ddae97ba5aa840eaa0fe30bf7cf9 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 3 Jun 2022 11:09:38 +0200 Subject: [PATCH] Log BEGIN/END of main action --- mysql/files/evomariabackup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mysql/files/evomariabackup.sh b/mysql/files/evomariabackup.sh index dd46a9ec..85b32168 100644 --- a/mysql/files/evomariabackup.sh +++ b/mysql/files/evomariabackup.sh @@ -417,6 +417,10 @@ post_backup_hook() { } main() { + if ! is_quiet; then + log_info "BEGIN evomariabackup" + fi + kill_or_clean_lockfile "${lock_file}" # shellcheck disable=SC2064 trap "rm -f ${lock_file};" 0 @@ -437,6 +441,10 @@ main() { if [ -n "${post_backup_hook}" ]; then post_backup_hook fi + + if ! is_quiet; then + log_info "END evomariabackup" + fi } # Declare variables