mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
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.
This commit is contained in:
parent
885b530e1a
commit
cdd58014a7
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user