Skip to content
Snippets Groups Projects
Commit 384b8d49 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] base_import_module: exception logger for module imports

When importing a module, if an error was raised
during the import, the traceback wasn't displayed
anywhere, making harder the debugging.

While it make sense to not display the entire traceback
to the user, in the web client, this is useful to
diplay the traceback in the logs, for debugging purposes.

opw-653882
parent ea2c80ca
Branches
Tags
No related merge requests found
......@@ -102,6 +102,7 @@ class view(osv.osv):
self.import_module(cr, uid, mod_name, path, force=force, context=context)
success.append(mod_name)
except Exception, e:
_logger.exception('Error while importing module')
errors[mod_name] = tools.ustr(e)
r = ["Successfully imported module '%s'" % mod for mod in success]
for mod, error in errors.items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment