summaryrefslogtreecommitdiff
path: root/openerp-web.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-09-07 17:41:05 +0200
committerAntony Lesuisse <al@openerp.com>2011-09-07 17:41:05 +0200
commit86b77c4cf389b5f9fa7f09bc4a130f51437a07bf (patch)
treef4fc5eb6d498b5edeb0cb7206d9246afa5e55b63 /openerp-web.py
parentffa4549555f6697e22fc72c2fa9efa8cdb340eb2 (diff)
[IMP] logging use default python logging output
bzr revid: al@openerp.com-20110907154105-0p2qf3iz1s22pvch
Diffstat (limited to 'openerp-web.py')
-rwxr-xr-xopenerp-web.py7
1 files 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(