You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SystemExit and KeyboardInterrupt no longer caught (regression from raven-python) #379
The same reasoning as getsentry/raven-python#675 applies for sentry-python,
where gunicorn raising a SytemExit(1) is something we would like to capture
in Sentry, as it is unexpected behavior from the application.
Huh, I've the opposite issue: raven did not log this, but the new client does.
However, I don't want this logged, since it doesn't make sense to me (the system will exit on every deployment, and that can happen way too many times).
Is there any way to avoid logging SystemExit? It doesn't make sense to me, and is filling my sentry issues board.
Activity
Log SystemExit (with non-zero exit code) and KeyboardInterrupt in WSG…
Merge remote-tracking branch 'origin/master' into fix-getsentrygh-379
fix(wsgi): Log SystemExit (with non-zero exit code) and KeyboardInter…
WhyNotHugo commentedon Jul 15, 2019
Huh, I've the opposite issue: raven did not log this, but the new client does.
However, I don't want this logged, since it doesn't make sense to me (the system will exit on every deployment, and that can happen way too many times).
Is there any way to avoid logging
SystemExit? It doesn't make sense to me, and is filling my sentry issues board.untitaker commentedon Jul 15, 2019
@WhyNotHugo can you confirm those events have the wsgi mechanism?
WhyNotHugo commentedon Jul 16, 2019
Yes, they all do.
untitaker commentedon Jul 16, 2019
Hmm, from what I know this means you abort gunicorn while it is handling a request and that might be the wrong way to shut it down.
In any case you can explicitly ignore this error like any error class with this here: #149 (comment)
WhyNotHugo commentedon Jul 16, 2019
Hmmm... let me double check, I believe we're killing gunicorn gracefully, but I might be wrong.
WhyNotHugo commentedon Jul 16, 2019
Yeah, looks like docker was killing them before gunicorn's internal grace period, I'll tweak that and it should solve it for me. Thanks.