sentry-python
sentry-python copied to clipboard
AtexitIntegration with custom callback still logs to stderr with LoggingIntegration
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.5.9
Steps to Reproduce
debug=True,
default_integrations=False,
integrations=[
AtexitIntegration(AuxiliaryFunctions.atexit_callback()),
LoggingIntegration(),
],
atexit_callback() logs Test to stderr
Expected Result
no stderr logging
Actual Result
stderr logs
Test [sentry] DEBUG: Setting up integrations (with default = False)
[sentry] DEBUG: Setting up previously not enabled integration atexit
[sentry] DEBUG: Setting up previously not enabled integration logging
[sentry] DEBUG: Enabling integration atexit
[sentry] DEBUG: Enabling integration logging
[sentry] DEBUG: atexit: got shutdown signal
[sentry] DEBUG: atexit: shutting down client
[sentry] DEBUG: Flushing HTTP transport
[sentry] DEBUG: Sending event, type:null level:error event_id:11765d83137d4dc0a62ae3b38ebe5b3d project:7 host:...
[sentry] DEBUG: background worker got flush request
[sentry] DEBUG: 2 event(s) pending on flush
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
[sentry] DEBUG: background worker flushed
[sentry] DEBUG: Killing HTTP transport
[sentry] DEBUG: background worker got kill request
[sentry] DEBUG: Killing HTTP transport
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 label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
I think you also have to disable the default integrations (default_integrations=False)