From d6ba7affd69a2ae04d9ae2eccf77dfa1e6c2b7a7 Mon Sep 17 00:00:00 2001 From: Herman Schaaf Date: Mon, 10 Oct 2022 17:54:46 +0100 Subject: [PATCH] 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,