File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 88from sentry_sdk .hub import Hub
99from sentry_sdk .utils import capture_internal_exceptions , event_from_exception
1010from sentry_sdk .integrations import Integration
11+ from sentry_sdk .integrations .logging import ignore_logger
1112
1213
1314class CeleryIntegration (Integration ):
@@ -19,6 +20,11 @@ def setup_once():
1920 task_postrun .connect (_handle_task_postrun , weak = False )
2021 task_failure .connect (_process_failure_signal , weak = False )
2122
23+ # This logger logs every status of every task that ran on the worker.
24+ # Meaning that every task's breadcrumbs are full of stuff like "Task
25+ # <foo> raised unexpected <bar>".
26+ ignore_logger ("celery.worker.job" )
27+
2228
2329def _process_failure_signal (sender , task_id , einfo , ** kw ):
2430 # einfo from celery is not reliable
You can’t perform that action at this time.
0 commit comments