We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34813d6 commit 9817ea9Copy full SHA for 9817ea9
sentry_sdk/integrations/logging.py
@@ -317,11 +317,10 @@ def _python_level_to_otel(record_level):
317
(20, 9, "info"),
318
(10, 5, "debug"),
319
(5, 1, "trace"),
320
- (0, 0, "default"),
321
]:
322
- if max(record_level, 0) >= py_level:
+ if record_level >= py_level:
323
return otel_severity_number, otel_severity_text
324
- raise AssertionError("this shouldn't happen")
+ return 0, "default"
325
326
327
class SentryLogsHandler(_BaseHandler):
0 commit comments