]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add log info message with log file
authorBastian Dehn <hhaalo@arcor.de>
Sun, 9 Aug 2026 09:07:24 +0000 (11:07 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 9 Aug 2026 09:07:24 +0000 (11:07 +0200)
src/backup
tests/backup_tests.bats

index c69d08669ee3dc9b22fa852b94d602a2a9708b67..259d37687520e5d97bf57497169cfa1d4270a9cb 100755 (executable)
@@ -40,7 +40,7 @@ log()
        type=$(get_backup_type "$config")
 
        logmsg="$datetime [$type] $msg"
-       echo "ℹ️ INFO: $logmsg"
+       echo "ℹ️ INFO: $logmsg -> $logfile"
        echo "$logmsg" >> "$logfile"
 }
 
index 1d06ab24ef300b52db2a637bf18c5129dd6e0a3d..66fdf49aa9187b45dc690fde154608afb595276d 100755 (executable)
@@ -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"