Skip to content

Commit

Permalink
Remove Sentry Exceptions
Browse files Browse the repository at this point in the history
as workaround for having a usable title for the issue groups (not the error type).
  • Loading branch information
mpass99 committed Jul 25, 2023
1 parent 75f2f9b commit 731b60a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/logging/sentry_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,10 @@ func (hook *SentryHook) Fire(entry *logrus.Entry) error {

event := client.EventFromMessage(entry.Message, sentry.Level(entry.Level.String()))
event.Timestamp = entry.Time
// Add Exception when an error was passed.
if data, ok := entry.Data["error"]; ok {
err, ok := data.(error)
if ok {
entry.Data["error"] = err.Error()
const maxErrorDepth = 10
event.SetException(err, maxErrorDepth)
}
}
hub.CaptureEvent(event)
Expand Down

0 comments on commit 731b60a

Please sign in to comment.