Skip to content

Commit

Permalink
display traceback when the work fails to boot (close benoitc#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Apr 26, 2012
1 parent 67c44c7 commit 0b3314b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gunicorn/arbiter.py
Expand Up @@ -454,7 +454,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)
Expand Down

0 comments on commit 0b3314b

Please sign in to comment.