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:
Neil Williams
2013-07-01 19:16:49 -07:00
parent b70f9608e2
commit cecbe7c5e6

View File

@@ -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,