mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
display traceback when the work fails to boot (close #338)
This commit is contained in:
parent
8c716dd110
commit
1c27d369b4
@ -455,7 +455,8 @@ class Arbiter(object):
|
||||
except SystemExit:
|
||||
raise
|
||||
except:
|
||||
self.log.exception("Exception in worker process:")
|
||||
self.log.debug("Exception in worker process:\n%s",
|
||||
traceback.format_exc())
|
||||
if not worker.booted:
|
||||
sys.exit(self.WORKER_BOOT_ERROR)
|
||||
sys.exit(-1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user