Unable to stop werkzeug from emitting Errors #2402
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I ended up filtering the messages but it would be great to have a permanent solution for it. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
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_logger
function 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