Unable to stop werkzeug from emitting Errors #2402
Answered
by
sentrivana
dantebarba
asked this question in
Q&A
Answered by
sentrivana
Nov 8, 2023
Replies: 2 comments
|
I ended up filtering the messages but it would be great to have a permanent solution for it. |
0 replies
|
Hey @dantebarba, sorry for the late reply. Based on what you write I assume it's our logging integration capturing the werkzeug logs and raising them as errors in Sentry. The best way to go about this it to use the sentry-python/sentry_sdk/integrations/celery.py Lines 118 to 119 in c8154be |
0 replies
Answer selected by
dantebarba
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hey @dantebarba, sorry for the late reply. Based on what you write I assume it's our logging integration capturing the werkzeug logs and raising them as errors in Sentry.
The best way to go about this it to use the
ignore_loggerfunction with the werkzeug logger name. This tells the logging integration to ignore that specific logger. An example how to use it from our codebase:sentry-python/sentry_sdk/integrations/celery.py
Lines 118 to 119 in c8154be