You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bandit is throwing exceptions for me from some malformed requests that are probing my site. I can easily filter out that exception with a before_send callback:
deffilter_non_500(%Sentry.Event{original_exception: exception}=event)doconddomatch?(%{message: "Timeout waiting for space in the send_window"},exception)->falsetrue->eventendend
but it appears the error is also getting captured by the log handler which has original_exception set to nil. What do I do in this situation?
Also, does this mean that all of my errors are being double-caught? Once as the error itself and then secondly as part of the logger? That doesn't seem like the desired behavior.
@hunterboerner this might be a problem with the :domain setting (see c4b2fac), but I see that it's just [:elixir] above. @mtrudel any idea what's going on here, if it's something Bandit-related?
We only added :bandit as the logging domain in 1.5.5, released on 19 Jun. If you're running a version older than that I think you should expect to the see the behaviour you're seeing
Hi,
Bandit
is throwing exceptions for me from some malformed requests that are probing my site. I can easily filter out that exception with abefore_send
callback:but it appears the error is also getting captured by the log handler which has
original_exception
set tonil
. What do I do in this situation?The text was updated successfully, but these errors were encountered: