mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix calling condition for Arbiter.log.reopen_files()
`GUNICORN_FD` is not always set in a `reexec`ed child process. Considering `Arbiter.master_pid` is set after log reopening, choose `GUNICORN_PID`.
This commit is contained in:
parent
cf55d2cec2
commit
7d50d61f94
@ -93,7 +93,7 @@ class Arbiter(object):
|
||||
self.log = self.cfg.logger_class(app.cfg)
|
||||
|
||||
# reopen files
|
||||
if 'GUNICORN_FD' in os.environ:
|
||||
if 'GUNICORN_PID' in os.environ:
|
||||
self.log.reopen_files()
|
||||
|
||||
self.worker_class = self.cfg.worker_class
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user