display traceback when the work fails to boot (close #338)

This commit is contained in:
Benoit Chesneau 2012-04-26 17:37:58 +02:00
parent 8c716dd110
commit 1c27d369b4

View File

@ -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)