Skip to content

Commit

Permalink
also migrate _should_send_default_pii
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Mar 26, 2024
1 parent 8cb40ed commit 92e0dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import sentry_sdk
from sentry_sdk.api import continue_trace
from sentry_sdk.consts import OP
from sentry_sdk.hub import _should_send_default_pii
from sentry_sdk.tracing import (
TRANSACTION_SOURCE_COMPONENT,
TRANSACTION_SOURCE_ROUTE,
Expand All @@ -25,6 +24,7 @@
_is_json_content_type,
)
from sentry_sdk.integrations.logging import ignore_logger
from sentry_sdk.scope import should_send_default_pii

try:
from tornado import version_info as TORNADO_VERSION
Expand Down Expand Up @@ -182,7 +182,7 @@ def tornado_processor(event, hint):
request_info["headers"] = _filter_headers(dict(request.headers))

with capture_internal_exceptions():
if handler.current_user and _should_send_default_pii():
if handler.current_user and should_send_default_pii():
event.setdefault("user", {}).setdefault("is_authenticated", True)

return event
Expand Down

0 comments on commit 92e0dd9

Please sign in to comment.