From 529baf50f872d14f70e3d272951e74583da6386e Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 7 Sep 2025 14:46:34 +0200 Subject: [PATCH] simplify message printing when restic receives signal --- cmd/restic/cleanup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cleanup.go b/cmd/restic/cleanup.go index 90ea93b92..45dc43b5c 100644 --- a/cmd/restic/cleanup.go +++ b/cmd/restic/cleanup.go @@ -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")