Log exception occurring during worker exit

This commit is contained in:
Jan-Philip Gehrcke 2016-05-04 19:46:32 +02:00
parent 9d158bec94
commit f4842a5ab8
2 changed files with 5 additions and 2 deletions

3
THANKS
View File

@ -160,4 +160,5 @@ Hebert J <hebert@mail.ru>
Kevin Littlejohn <kevin@littlejohn.id.au> Kevin Littlejohn <kevin@littlejohn.id.au>
Wolfgang Schnerring <wosc@wosc.de> Wolfgang Schnerring <wosc@wosc.de>
Jason Madden <jason@nextthought.com> Jason Madden <jason@nextthought.com>
Eugene Obukhov <irvind25@gmail.com> Eugene Obukhov <irvind25@gmail.com>
Jan-Philip Gehrcke <jgehrcke@googlemail.com>

View File

@ -11,6 +11,7 @@ import select
import signal import signal
import sys import sys
import time import time
import traceback
from gunicorn.errors import HaltServer, AppImportError from gunicorn.errors import HaltServer, AppImportError
from gunicorn.pidfile import Pidfile from gunicorn.pidfile import Pidfile
@ -535,7 +536,8 @@ class Arbiter(object):
worker.tmp.close() worker.tmp.close()
self.cfg.worker_exit(self, worker) self.cfg.worker_exit(self, worker)
except: except:
pass self.log.warning("Exception during worker exit:\n%s",
traceback.format_exc())
def spawn_workers(self): def spawn_workers(self):
"""\ """\