Skip to content

Unable to stop werkzeug from emitting Errors #2402

Answered by sentrivana
dantebarba asked this question in Q&A
Discussion options

You must be logged in to vote

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:

ignore_logger("celery.worker.job")
ignore_logger("celery.app.trace")

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dantebarba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants