From c382c8f2fa0087015c0bc3f2142b6f8b055e44b4 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 6 Jan 2017 17:11:30 +0100 Subject: [PATCH] [IMP] core: module loading: less verbose logs Only warn about non loaded declared models with a minimal logging level. --- openerp/modules/loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/modules/loading.py b/openerp/modules/loading.py index 985ba53cb8f..92d174dcd23 100644 --- a/openerp/modules/loading.py +++ b/openerp/modules/loading.py @@ -365,7 +365,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False): for (model,) in cr.fetchall(): if model in registry: registry[model]._check_removed_columns(cr, log=True) - else: + elif _logger.isEnabledFor(logging.INFO): # more an info that a warning... _logger.warning("Model %s is declared but cannot be loaded! (Perhaps a module was partially removed or renamed)", model) # Cleanup orphan records