common.error_reporting: drop log to warning so that it doesn't report to prod

main
Ryan Barrett 2025-10-25 09:45:04 -07:00
rodzic 5ae1c90ef5
commit 987aadb831
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -429,7 +429,9 @@ def report_error(msg, *, exception=False, **kwargs):
if DEBUG and exception:
raise
else:
logger.error(msg, exc_info=exception)
# must be at warning level. logging with exception at error level or
# above will report to prod error reporting
logger.warning(msg, exc_info=exception)
return
http_context = build_flask_context(request) if has_request_context() else None