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:
parent
37aca6bec0
commit
e604939e72
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user