Skip to content

Commit 3b00f57

Browse files
authored
fix: Do not unnecessarily ignore tornado.application logger (getsentry#554)
1 parent 8cc48dc commit 3b00f57

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

sentry_sdk/integrations/tornado.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def setup_once():
5050
"The tornado integration for Sentry requires Python 3.6+ or the aiocontextvars package"
5151
)
5252

53-
ignore_logger("tornado.application")
5453
ignore_logger("tornado.access")
5554

5655
old_execute = RequestHandler._execute

tests/integrations/tornado/test_tornado.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_basic(tornado_testcase, sentry_init, capture_events):
5454
event, = events
5555
exception, = event["exception"]["values"]
5656
assert exception["type"] == "ZeroDivisionError"
57+
assert exception["mechanism"]["type"] == "tornado"
5758

5859
request = event["request"]
5960
host = request["headers"]["Host"]

0 commit comments

Comments
 (0)