diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 48df93e6a..1b55672d0 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -11,7 +11,6 @@ import signal import sys import time -import traceback from gunicorn.errors import HaltServer, AppImportError from gunicorn.pidfile import Pidfile @@ -208,7 +207,7 @@ def run(self): raise except Exception: self.log.info("Unhandled exception in main loop", - exc_info=1) + exc_info=True) self.stop(False) if self.pidfile is not None: self.pidfile.unlink() @@ -519,7 +518,7 @@ def spawn_worker(self): raise except AppImportError as e: self.log.debug("Exception while loading the application", - exc_info=1) + exc_info=True) print("%s" % e, file=sys.stderr) sys.stderr.flush() sys.exit(self.APP_LOAD_ERROR)