diff --git a/cmd/restic/cleanup.go b/cmd/restic/cleanup.go index 61af72802..967957106 100644 --- a/cmd/restic/cleanup.go +++ b/cmd/restic/cleanup.go @@ -78,5 +78,6 @@ func CleanupHandler(c <-chan os.Signal) { // given exit code. func Exit(code int) { code = RunCleanupHandlers(code) + debug.Log("exiting with status code %d", code) os.Exit(code) }