simplify message printing when restic receives signal

This commit is contained in:
Michael Eischer committed 2025-09-08 11:04:11 +02:00
1 parent d10bd1d321
commit 529baf50f8
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ func createGlobalContext() context.Context {
func cleanupHandler(c <-chan os.Signal, cancel context.CancelFunc) {
s := <-c
debug.Log("signal %v received, cleaning up", s)
Warnf("%ssignal %v received, cleaning up\n", clearLine(0), s)
Warnf("\rsignal %v received, cleaning up \n", s)
if val, _ := os.LookupEnv("RESTIC_DEBUG_STACKTRACE_SIGINT"); val != "" {
_, _ = os.Stderr.WriteString("\n--- STACKTRACE START ---\n\n")