build(deps): bump github.com/getsentry/sentry-go from 0.23.0 to 0.24.0
Bumps [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) from 0.23.0 to 0.24.0. - [Release notes](https://github.com/getsentry/sentry-go/releases) - [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-go/compare/v0.23.0...v0.24.0)
This commit is contained in:
@@ -17,8 +17,8 @@ var sentryInit = sentry.Init
|
||||
|
||||
func SetupSentry(logger log.Interface, releaseName string, args SentryConfig) error {
|
||||
if args.Disabled {
|
||||
logger.Info("Sentry disabled, skipping setup")
|
||||
return nil
|
||||
logger.Info("Sentry disabled, setup using empty options")
|
||||
return sentryInit(sentry.ClientOptions{})
|
||||
}
|
||||
if args.Environment == "" {
|
||||
return fmt.Errorf("no Sentry environment supplied, exiting")
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ func TestSetupSentry(t *testing.T) {
|
||||
},
|
||||
init: nil,
|
||||
wantErr: assert.NoError,
|
||||
wantLogged: []string{"info: Sentry disabled, skipping setup"},
|
||||
wantLogged: []string{"info: Sentry disabled, setup using empty options"},
|
||||
},
|
||||
{
|
||||
name: "no environment",
|
||||
|
||||
Reference in New Issue
Block a user