forked from TrueCloudLab/restic
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue