From: Bastian Dehn Date: Sun, 9 Aug 2026 09:07:24 +0000 (+0200) Subject: add log info message with log file X-Git-Tag: v1.0.6^2~1^2~24 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=645472eaa6d247ffede22924b9771176517973b2;p=simple-backup.git add log info message with log file --- diff --git a/src/backup b/src/backup index c69d086..259d376 100755 --- a/src/backup +++ b/src/backup @@ -40,7 +40,7 @@ log() type=$(get_backup_type "$config") logmsg="$datetime [$type] $msg" - echo "ℹ️ INFO: $logmsg" + echo "ℹ️ INFO: $logmsg -> $logfile" echo "$logmsg" >> "$logfile" } diff --git a/tests/backup_tests.bats b/tests/backup_tests.bats index 1d06ab2..66fdf49 100755 --- a/tests/backup_tests.bats +++ b/tests/backup_tests.bats @@ -881,7 +881,7 @@ write_log_entry() { run log "$config" "log entry" assert_success - assert_output "ℹ️ INFO: 2000-01-01T23:30:45+02:00 [$type] log entry" + assert_output "ℹ️ INFO: 2000-01-01T23:30:45+02:00 [$type] log entry -> build/backup.log" assert_equal "$(cat "build/backup.log")" "2000-01-01T23:30:45+02:00 [$type] log entry" rm "build/$type" rm "build/backup.log"