2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00

Debug log status code if execution is interrupted

Currently, there is no clear indication in the debug log whether restic
exited or not.
This commit is contained in:
Michael Eischer 2023-04-12 21:58:29 +02:00
parent 37aca6bec0
commit e604939e72

View File

@ -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)
}