Skip to content

Commit

Permalink
Prevent exceptions from being logged twice.
Browse files Browse the repository at this point in the history
  * Remove logging call in worker subclasses and rely on the
    logging in Worker.handle_error to do the proper logging.
  • Loading branch information
davisp committed Jan 29, 2011
1 parent 885b530 commit cdd5801
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion gunicorn/workers/async.py
Expand Up @@ -46,7 +46,6 @@ def handle(self, client, addr):
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)
Expand Down
1 change: 0 additions & 1 deletion gunicorn/workers/sync.py
Expand Up @@ -76,7 +76,6 @@ def handle(self, client, addr):
else:
self.log.debug("Ignoring EPIPE")
except Exception, e:
self.log.exception("Error processing request.")
self.handle_error(client, e)
finally:
util.close(client)
Expand Down

0 comments on commit cdd5801

Please sign in to comment.