mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
et logging handler after we daemonize like it was before. Solve issue
raised by timf : 26f9460e48
This commit is contained in:
parent
acd8d57c9f
commit
7c671b72cc
@ -63,9 +63,7 @@ class Application(object):
|
|||||||
for k, v in list(opts.__dict__.items()):
|
for k, v in list(opts.__dict__.items()):
|
||||||
if v is None:
|
if v is None:
|
||||||
continue
|
continue
|
||||||
self.cfg.set(k.lower(), v)
|
self.cfg.set(k.lower(), v)
|
||||||
|
|
||||||
self.configure_logging()
|
|
||||||
|
|
||||||
def init(self, parser, opts, args):
|
def init(self, parser, opts, args):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
@ -85,6 +83,7 @@ class Application(object):
|
|||||||
util.daemonize()
|
util.daemonize()
|
||||||
else:
|
else:
|
||||||
os.setpgrp()
|
os.setpgrp()
|
||||||
|
self.configure_logging()
|
||||||
Arbiter(self).run()
|
Arbiter(self).run()
|
||||||
|
|
||||||
def configure_logging(self):
|
def configure_logging(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user