From d6ba7affd69a2ae04d9ae2eccf77dfa1e6c2b7a7 Mon Sep 17 00:00:00 2001 From: Herman Schaaf Date: Mon, 10 Oct 2022 17:54:46 +0100 Subject: [PATCH 1/2] Ignore Sentry errors in dev (case insensitive) --- serve/destination.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serve/destination.go b/serve/destination.go index 759987eccb..ba3d5b392f 100644 --- a/serve/destination.go +++ b/serve/destination.go @@ -99,7 +99,7 @@ func newCmdDestinationServe(destination *destinationServe) *cobra.Command { }) version := destination.plugin.Version() - if destination.sentryDSN != "" && version != "development" { + if destination.sentryDSN != "" && !strings.EqualFold(version, "development") { err = sentry.Init(sentry.ClientOptions{ Dsn: destination.sentryDSN, Debug: false, From d24aec2a3c7f3aadd6a5a5cf27c36d43107e6739 Mon Sep 17 00:00:00 2001 From: Herman Schaaf Date: Mon, 10 Oct 2022 17:57:26 +0100 Subject: [PATCH 2/2] fix: Ignore Sentry errors in source dev (make comparison case insensitive) --- serve/source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serve/source.go b/serve/source.go index c1d32d9add..734b173a39 100644 --- a/serve/source.go +++ b/serve/source.go @@ -101,7 +101,7 @@ func newCmdSourceServe(source *sourceServe) *cobra.Command { }) version := source.plugin.Version() - if source.sentryDSN != "" && version != "development" { + if source.sentryDSN != "" && strings.EqualFold(version, "development") { err = sentry.Init(sentry.ClientOptions{ Dsn: source.sentryDSN, Debug: false,