diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-09-07 17:41:05 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-09-07 17:41:05 +0200 |
| commit | 86b77c4cf389b5f9fa7f09bc4a130f51437a07bf (patch) | |
| tree | f4fc5eb6d498b5edeb0cb7206d9246afa5e55b63 | |
| parent | ffa4549555f6697e22fc72c2fa9efa8cdb340eb2 (diff) | |
[IMP] logging use default python logging output
bzr revid: al@openerp.com-20110907154105-0p2qf3iz1s22pvch
| -rwxr-xr-x | openerp-web.py | 7 |
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( |
