Closed bllchmbrs closed 3 weeks ago
Sentry's LoguruIntegration
contains code like logger.add(LoguruEventHandler(...
. logger.configure
overrides those handlers. Either call logger.configure
first, or call logger.add(logfire.loguru_handler())
.
thanks - I was actually just about to get here as I was reading the code in more detail - thanks!!!
For posterity, logger.add(logfire.loguru_handler())
doesn't work. will update with what does.
Best practice: load sentry after the case. That causes events to fire in both locations.
I think it should actually be logger.add(**logfire.loguru_handler())
Description
Reproduction:
See the comments, after I configure logfire + sentry, logfire swallows all events.
Python, Logfire & OS Versions, related packages (not required)