3👍
✅
django.db.backends
contains logs for every SQL query, and that’s the only thing Django uses it for. To my knowledge there are no warnings or errors ever logged on this namespace.
We want to ignore logging breadcrumbs from django.db.backends
because we already have a custom hook for capturing SQL queries in Django, such that we can show them differently from other breadcrumbs in the UI.
Raven offloads this logic to the user, the new SDK sentry_sdk
ignores the logger internally. You can find the equivalent here: https://github.com/getsentry/sentry-python/blob/fde5576e489dd7926fce7bae7be8399021cdde14/sentry_sdk/integrations/django/init.py#L365
Source:stackexchange.com