From cecbe7c5e6ce0dffe0251b4ca627d4a506088eb7 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 1 Jul 2013 19:16:49 -0700 Subject: [PATCH] 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. --- r2/r2/lib/log.py | 1 + 1 file changed, 1 insertion(+) diff --git a/r2/r2/lib/log.py b/r2/r2/lib/log.py index 04b8d5b4d..e9726ede2 100644 --- a/r2/r2/lib/log.py +++ b/r2/r2/lib/log.py @@ -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,