From 04f0efa7097cc808600d7d25a56763a4a62e01ab Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 20 Apr 2021 16:00:39 +0200 Subject: [PATCH] fix: sentry report message --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index f1cf14d0..a7921a20 100644 --- a/main.go +++ b/main.go @@ -80,7 +80,7 @@ func run() int { } func flushSentry() { - fmt.Print("Sending error report ...") - gosentry.Flush(60 * time.Second) - fmt.Printf(" done, thank you %s\n", color.RedString("❤️")) + ttl := 60 * time.Second + ok := gosentry.Flush(ttl) + logrus.WithField("timeout", ttl).WithField("success", ok).Debug("Flushed Sentry events") }