From 7c671b72cc7cb669d35f605c668232bde3b826be Mon Sep 17 00:00:00 2001 From: benoitc Date: Sat, 5 Jun 2010 23:15:25 +0200 Subject: [PATCH] et logging handler after we daemonize like it was before. Solve issue raised by timf : http://github.com/timf/gunicorn/commit/26f9460e4899a04ae3f344460adcc4ff60f389f7 --- gunicorn/app/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gunicorn/app/base.py b/gunicorn/app/base.py index 3eb24827..be91d67f 100644 --- a/gunicorn/app/base.py +++ b/gunicorn/app/base.py @@ -63,9 +63,7 @@ class Application(object): for k, v in list(opts.__dict__.items()): if v is None: continue - self.cfg.set(k.lower(), v) - - self.configure_logging() + self.cfg.set(k.lower(), v) def init(self, parser, opts, args): raise NotImplementedError @@ -85,6 +83,7 @@ class Application(object): util.daemonize() else: os.setpgrp() + self.configure_logging() Arbiter(self).run() def configure_logging(self):