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

AtexitIntegration with custom callback still logs to stderr with LoggingIntegration

Open sl0thentr0py opened this issue 3 years ago • 1 comments

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

sl0thentr0py avatar Apr 13 '22 14:04 sl0thentr0py

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 🥀

github-actions[bot] avatar May 05 '22 00:05 github-actions[bot]

I think you also have to disable the default integrations (default_integrations=False)

danielbraun89 avatar May 28 '23 10:05 danielbraun89