From cdd58014a7edf2b688fa6ec9481c9e1a3b0cda91 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Sat, 29 Jan 2011 16:40:25 -0500 Subject: [PATCH] Prevent exceptions from being logged twice. * Remove logging call in worker subclasses and rely on the logging in Worker.handle_error to do the proper logging. --- gunicorn/workers/async.py | 1 - gunicorn/workers/sync.py | 1 - 2 files changed, 2 deletions(-) diff --git a/gunicorn/workers/async.py b/gunicorn/workers/async.py index aec1a6bc..4f6127b8 100644 --- a/gunicorn/workers/async.py +++ b/gunicorn/workers/async.py @@ -46,7 +46,6 @@ class AsyncWorker(base.Worker): else: self.log.debug("Ignoring EPIPE") except Exception, e: - self.log.exception("General error processing request.") self.handle_error(client, e) finally: util.close(client) diff --git a/gunicorn/workers/sync.py b/gunicorn/workers/sync.py index cb283dbc..a9e66d56 100644 --- a/gunicorn/workers/sync.py +++ b/gunicorn/workers/sync.py @@ -76,7 +76,6 @@ class SyncWorker(base.Worker): else: self.log.debug("Ignoring EPIPE") except Exception, e: - self.log.exception("Error processing request.") self.handle_error(client, e) finally: util.close(client)