Merge pull request #452 from cloudskiff/fix/sentryMsg

Replace Sentry message by debug log
main
Elie 2021-04-21 09:36:06 +02:00 committed by GitHub
commit 351bcc70dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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")
}