Permalink
Browse files

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

  • Loading branch information...
benoitc committed Apr 26, 2012
1 parent 8c716dd commit 1c27d369b4e3cc9d816f70b7ecf597fb52859248
Showing with 2 additions and 1 deletion.
  1. +2 −1 gunicorn/arbiter.py
View
@@ -455,7 +455,8 @@ def spawn_worker(self):
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)

0 comments on commit 1c27d36

Please sign in to comment.