1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 02:08:37 +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)
}