diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 9b9c8d6d..8e27dca4 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -631,8 +631,10 @@ class Arbiter: print("%s" % e, file=sys.stderr) sys.stderr.flush() sys.exit(self.APP_LOAD_ERROR) - except Exception: + except Exception as e: self.log.exception("Exception in worker process") + print("%s" % e, file=sys.stderr) + sys.stderr.flush() if not worker.booted: sys.exit(self.WORKER_BOOT_ERROR) sys.exit(-1)