sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Loguru Integration sets invalid level values on event

Open szokeasaurusrex opened this issue 1 year ago • 1 comments

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.41.0

Steps to Reproduce

N/A

Expected Result

The Loguru integration only should set valid level values on the event and breadcrumb objects. The only valid values, according to the docs, are "fatal", "error", "warning", "info", and "debug". Relay additionally recognizes "log" and "critical" as aliases for "info" and "fatal", respectively.

Actual Result

The Loguru integration sometimes sets the event or breadcrumb level to "trace" or "success" – both of which are invalid values that Relay will reject.

szokeasaurusrex avatar Mar 11 '24 11:03 szokeasaurusrex

See also https://github.com/getsentry/sentry-python/issues/2759

We could either add the new levels to relay or preprocess them in the SDK somehow (e.g., change trace to debug).

sentrivana avatar Mar 13 '24 12:03 sentrivana

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Jun 28 '24 07:06 getsantry[bot]

Closing in favor of https://github.com/getsentry/sentry-python/issues/2759

sentrivana avatar Jun 28 '24 07:06 sentrivana