Skip to content

Commit b8ff955

Browse files
refactor: Remove noisy log statement due to nil eventID
1 parent 1af7f5d commit b8ff955

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

surveillance/sentry.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ func (wrapper *Sentry) CaptureWithContext(c context.Context, err error, _panic b
142142
eventID = hub.CaptureException(err)
143143
if eventID != nil {
144144
log.Errorf(err, "Error captured in sentry with the event ID `%s`", *eventID)
145-
} else {
146-
log.Error(err, "Error could not be captured in sentry due to nil event ID")
147145
}
146+
// NOTE: logging nil events was causing logs to be cluttered with warning logs, hence skipping.
148147
} else {
149148
wrapper.Capture(err, _panic)
150149
}

0 commit comments

Comments
 (0)