From 119e339e296338417dcd33e9bb14dd61b1960096 Mon Sep 17 00:00:00 2001 From: ge Date: Tue, 7 Jun 2022 22:14:34 +0300 Subject: [PATCH] feat: Increase log verbosity --- src/boring-backup | 2 ++ src/lib/handlers/cp.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/src/boring-backup b/src/boring-backup index a07e24f..d0d7f63 100755 --- a/src/boring-backup +++ b/src/boring-backup @@ -119,6 +119,8 @@ __iter=1 # iterator # Startup log. date +'Start: %d %b %Y %T %z' log "Backup STARTED" +log -p "Library path: $LIBRARY" +log -p "Log file: $__log_file" log -p "Configuration file: $([ "$__config" ] || echo not specified && echo "$__config")" log "Scripts to process (${__count}): ${__args[@]}" diff --git a/src/lib/handlers/cp.sh b/src/lib/handlers/cp.sh index f5e61ef..bddd085 100644 --- a/src/lib/handlers/cp.sh +++ b/src/lib/handlers/cp.sh @@ -31,6 +31,7 @@ handler::cp() { if [[ "$uri" == "$__main_target" ]]; then : # Do nothing. Source and destination is the same + log "Nothing to do: Source and destination is the same: $__main_target" else # Copy backups to another destination parse_uri "$uri"