Skip to content

Commit e8f664d

Browse files
.
1 parent 7a82862 commit e8f664d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/django/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ def install_sql_hook():
634634
real_executemany = CursorWrapper.executemany
635635
real_connect = BaseDatabaseWrapper.connect
636636
real_commit = BaseDatabaseWrapper.commit
637-
ignore_logger("django.db.backends")
638637
except AttributeError:
639638
# This won't work on Django versions < 1.6
640639
return
@@ -707,6 +706,7 @@ def commit(self):
707706
CursorWrapper.executemany = executemany
708707
BaseDatabaseWrapper.connect = connect
709708
BaseDatabaseWrapper.commit = commit
709+
ignore_logger("django.db.backends")
710710

711711

712712
def _set_db_data(span, cursor_or_db, db_operation=None):

0 commit comments

Comments
 (0)