mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
log_q: Add SystemExit to the ignore list.
This is what will happen if gunicorn receives a SIGTERM (indicating non-graceful worker shutdown -- likely because the worker has overstayed its welcome) and so it's not actually useful information.
This commit is contained in:
@@ -90,6 +90,7 @@ class LogQueueErrorReporter(Reporter):
|
||||
import r2.lib.lock
|
||||
|
||||
return (
|
||||
SystemExit, # gunicorn is shutting us down
|
||||
_pylibmc.MemcachedError,
|
||||
r2.lib.db.thing.NotFound,
|
||||
r2.lib.lock.TimeoutExpired,
|
||||
|
||||
Reference in New Issue
Block a user