Skip to content

Commit

Permalink
Log exception occurring during worker exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgehrcke committed May 11, 2016
1 parent 9d158be commit f4842a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion THANKS
Expand Up @@ -160,4 +160,5 @@ Hebert J <hebert@mail.ru>
Kevin Littlejohn <kevin@littlejohn.id.au>
Wolfgang Schnerring <wosc@wosc.de>
Jason Madden <jason@nextthought.com>
Eugene Obukhov <irvind25@gmail.com>
Eugene Obukhov <irvind25@gmail.com>
Jan-Philip Gehrcke <jgehrcke@googlemail.com>
4 changes: 3 additions & 1 deletion gunicorn/arbiter.py
Expand Up @@ -11,6 +11,7 @@
import signal
import sys
import time
import traceback

from gunicorn.errors import HaltServer, AppImportError
from gunicorn.pidfile import Pidfile
Expand Down Expand Up @@ -535,7 +536,8 @@ def spawn_worker(self):
worker.tmp.close()
self.cfg.worker_exit(self, worker)
except:
pass
self.log.warning("Exception during worker exit:\n%s",
traceback.format_exc())

def spawn_workers(self):
"""\
Expand Down

0 comments on commit f4842a5

Please sign in to comment.