Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
ribice committed Jan 25, 2025
1 parent c67c464 commit 69fabfd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions logrus/logrusentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,6 @@ func (h *Hook) entryToEvent(l *logrus.Entry) *sentry.Event {
s.Request = request
}

if req, ok := s.Extra[key].(*http.Request); ok {
delete(s.Extra, key)
s.Request = sentry.NewRequest(req)
}

if err, ok := s.Extra[logrus.ErrorKey].(error); ok {
delete(s.Extra, logrus.ErrorKey)
s.SetException(err, -1)
Expand Down

0 comments on commit 69fabfd

Please sign in to comment.