From c4dc829e6dd5153f8cb9dae582f07bb4f4033727 Mon Sep 17 00:00:00 2001 From: Romain LE JEUNE Date: Wed, 31 May 2023 14:28:26 +0200 Subject: [PATCH] fix(GODT-2669): Display sentry ID in bridge init log. --- internal/app/app.go | 1 + internal/sentry/reporter.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index 56db6e45..90ce7192 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -325,6 +325,7 @@ func withLogging(c *cli.Context, crashHandler *crash.Handler, locations *locatio WithField("build", constants.BuildTime). WithField("runtime", runtime.GOOS). WithField("args", os.Args). + WithField("SentryID", sentry.GetProtectedHostname()). Info("Run app") return fn() diff --git a/internal/sentry/reporter.go b/internal/sentry/reporter.go index c15832ec..2b69b4ad 100644 --- a/internal/sentry/reporter.go +++ b/internal/sentry/reporter.go @@ -96,7 +96,6 @@ func GetTimeZone() string { // NewReporter creates new sentry reporter with appName and appVersion to report. func NewReporter(appName string, identifier Identifier) *Reporter { - logrus.WithField("id", GetProtectedHostname()).Info("New sentry reporter") return &Reporter{ appName: appName, appVersion: constants.Revision,