Skip to content

Commit

Permalink
fix: debug sentry integration
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed Nov 25, 2024
1 parent d64e1f8 commit dda74cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ca/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (ca *CA) Init(cfg *config.Config) (*CA, error) {
TracesSampleRate: 1.0,
EnableTracing: true,
}); err != nil {
logrus.Info("Sentry initialization failed: %v", err)
logrus.Infof("Sentry initialization failed: %v", err)
} else {
logrus.Info("Sentry initialized")
}
Expand Down
1 change: 1 addition & 0 deletions cas/sectigocas/sectigocas.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func sentryInterceptor(ctx context.Context,

hub := sentry.GetHubFromContext(ctx)
if hub == nil {
logrus.Warn("No Sentry hub found in context, creating new one")
hub = sentry.CurrentHub().Clone()
ctx = sentry.SetHubOnContext(ctx, hub)
}
Expand Down

0 comments on commit dda74cd

Please sign in to comment.