mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
reopen log files after initialization . close #309
make sure we reopen logfiles after initialization so we are sure we can use it.
This commit is contained in:
parent
533ce5df87
commit
ff1dfa1780
@ -86,8 +86,8 @@ class Arbiter(object):
|
|||||||
self.cfg = app.cfg
|
self.cfg = app.cfg
|
||||||
self.log = self.cfg.logger_class(app.cfg)
|
self.log = self.cfg.logger_class(app.cfg)
|
||||||
|
|
||||||
if 'GUNICORN_FD' in os.environ:
|
# reopen files
|
||||||
self.log.reopen_files()
|
self.log.reopen_files()
|
||||||
|
|
||||||
self.address = self.cfg.address
|
self.address = self.cfg.address
|
||||||
self.num_workers = self.cfg.workers
|
self.num_workers = self.cfg.workers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user