From 86b77c4cf389b5f9fa7f09bc4a130f51437a07bf Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Wed, 7 Sep 2011 17:41:05 +0200 Subject: [PATCH] [IMP] logging use default python logging output bzr revid: al@openerp.com-20110907154105-0p2qf3iz1s22pvch --- openerp-web.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/openerp-web.py b/openerp-web.py index e58941448cd..5617a0b8bdd 100755 --- a/openerp-web.py +++ b/openerp-web.py @@ -44,15 +44,12 @@ if __name__ == "__main__": (options, args) = optparser.parse_args(sys.argv[1:]) os.environ["TZ"] = "UTC" - + if not options.log_config: logging.basicConfig(level=getattr(logging, options.log_level.upper())) - dispatch = logging.getLogger('web.common.dispatch') - dispatch.addHandler(logging.StreamHandler(sys.stdout)) - dispatch.propagate = False else: logging.config.fileConfig(options.log_config) - + app = web.common.dispatch.Root(options) werkzeug.serving.run_simple(