Skip to content

Commit 7a82862

Browse files
.
1 parent ad5ef1d commit 7a82862

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/django/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ 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")
637638
except AttributeError:
638639
# This won't work on Django versions < 1.6
639640
return
@@ -694,10 +695,9 @@ def connect(self):
694695
@ensure_integration_enabled(DjangoIntegration, real_commit)
695696
def commit(self):
696697
# type: (BaseDatabaseWrapper) -> None
697-
print("commiting")
698698
with sentry_sdk.start_span(
699699
op=OP.DB,
700-
name="commit", # DBOPERATION.COMMIT,
700+
name=DBOPERATION.COMMIT,
701701
origin=DjangoIntegration.origin_db,
702702
) as span:
703703
_set_db_data(span, self, DBOPERATION.COMMIT)

0 commit comments

Comments
 (0)