From df35de22b80df3a1e57dd38e44dc69de82ef4e50 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 21 May 2014 15:53:16 +0200 Subject: [PATCH] Disable logging during commands discovery --- openerp/cli/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openerp/cli/__init__.py b/openerp/cli/__init__.py index 27428369cbc..574898b1e24 100644 --- a/openerp/cli/__init__.py +++ b/openerp/cli/__init__.py @@ -47,6 +47,7 @@ def main(): # Subcommand discovery if len(args) and not args[0].startswith("-"): + logging.disable(logging.CRITICAL) for m in module.get_modules(): m = 'openerp.addons.' + m __import__(m) @@ -54,6 +55,7 @@ def main(): #except Exception, e: # raise # print e + logging.disable(logging.NOTSET) command = args[0] args = args[1:]