mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1115 from benoitc/fix/627
makes sure that file handles are correctly reopened on HUP
This commit is contained in:
commit
ed9d5dd824
@ -56,6 +56,7 @@ class Arbiter(object):
|
||||
|
||||
self._num_workers = None
|
||||
self._last_logged_active_worker_count = None
|
||||
self.log = None
|
||||
|
||||
self.setup(app)
|
||||
|
||||
@ -88,7 +89,9 @@ class Arbiter(object):
|
||||
def setup(self, app):
|
||||
self.app = app
|
||||
self.cfg = app.cfg
|
||||
self.log = self.cfg.logger_class(app.cfg)
|
||||
|
||||
if self.log is None:
|
||||
self.log = self.cfg.logger_class(app.cfg)
|
||||
|
||||
# reopen files
|
||||
if 'GUNICORN_FD' in os.environ:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user