summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-01-06 17:11:30 +0100
committerChristophe Simonis <chs@odoo.com>2017-01-06 17:11:30 +0100
commitc382c8f2fa0087015c0bc3f2142b6f8b055e44b4 (patch)
tree9f630bec2eb22f8bdab9bfefd1631c93bd90b465
parent678c42aeb037eae3b9b8edc21f0a054966cde116 (diff)
[IMP] core: module loading: less verbose logs
Only warn about non loaded declared models with a minimal logging level.
-rw-r--r--openerp/modules/loading.py2
1 files changed, 1 insertions, 1 deletions
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