[FIX] registry: explicitly log registry loading errors

In case the caller happens to silently catch
the exception, leading to hard-to-diagnose
registry/routing problems.
This commit is contained in:
Olivier Dony
2015-12-14 10:24:59 +01:00
parent 5254e31a46
commit e62b9e7c93
+1
View File
@@ -384,6 +384,7 @@ class RegistryManager(object):
# This should be a method on Registry
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
except Exception:
_logger.exception('Failed to load registry')
del cls.registries[db_name]
raise