[IMP] core: module loading: less verbose logs

Only warn about non loaded declared models with a minimal logging level.
This commit is contained in:
Christophe Simonis
2017-01-06 17:11:30 +01:00
parent 678c42aeb0
commit c382c8f2fa
+1 -1
View File
@@ -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