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
{{ message }}
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
raven.contrib.celery.register_logger_signal attempts to find an existing handler to add a CeleryFilter to. It only considers existing handlers that are of type: raven.handlers.logging.SentryHandler. This means that if a subclass of this handler is found (such as raven.contrib.django.handlers.SentryHandler) the existing handler is ignored and a brand new handler with default settings is added, resulting in two potentially duplicate handlers.
The fix for this would be to change the type check here to an isinstance check.
I'm interested in submitting a PR for this with tests, if this change is considered appropriate.
Here is the skeleton of a test that would help cover this: