[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user