Sentry: Fix environment names

This commit is contained in:
Raphael Michel
2021-05-05 22:33:02 +02:00
parent f2e2b5cb86
commit 63cfef43e4

View File

@@ -722,7 +722,7 @@ if config.has_option('sentry', 'dsn') and not any(c in sys.argv for c in ('shell
event_level=logging.CRITICAL
)
],
environment=SITE_URL,
environment=urlparse(SITE_URL).netloc,
release=__version__,
send_default_pii=False,
)