8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e3d0ec commit 067ea92Copy full SHA for 067ea92
sentry_sdk/integrations/_wsgi.py
@@ -14,7 +14,11 @@ def get_environ(environ):
14
"""
15
Returns our whitelisted environment variables.
16
17
- for key in ("REMOTE_ADDR", "SERVER_NAME", "SERVER_PORT"):
+ keys = ("SERVER_NAME", "SERVER_PORT")
18
+ if _should_send_default_pii():
19
+ keys += ("REMOTE_ADDR",)
20
+
21
+ for key in keys:
22
if key in environ:
23
yield key, environ[key]
24
sentry_sdk/integrations/django/__init__.py
@@ -60,6 +60,9 @@ def setup_once():
60
install_sql_hook()
61
# Patch in our custom middleware.
62
63
+ # logs an error for every 500
64
+ ignore_logger("django.server")
65
66
from django.core.handlers.wsgi import WSGIHandler
67
68
old_app = WSGIHandler.__call__
0 commit comments