Disable logging during commands discovery
This commit is contained in:
parent
eb7f96efbb
commit
df35de22b8
|
@ -47,6 +47,7 @@ def main():
|
||||||
|
|
||||||
# Subcommand discovery
|
# Subcommand discovery
|
||||||
if len(args) and not args[0].startswith("-"):
|
if len(args) and not args[0].startswith("-"):
|
||||||
|
logging.disable(logging.CRITICAL)
|
||||||
for m in module.get_modules():
|
for m in module.get_modules():
|
||||||
m = 'openerp.addons.' + m
|
m = 'openerp.addons.' + m
|
||||||
__import__(m)
|
__import__(m)
|
||||||
|
@ -54,6 +55,7 @@ def main():
|
||||||
#except Exception, e:
|
#except Exception, e:
|
||||||
# raise
|
# raise
|
||||||
# print e
|
# print e
|
||||||
|
logging.disable(logging.NOTSET)
|
||||||
command = args[0]
|
command = args[0]
|
||||||
args = args[1:]
|
args = args[1:]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue