Skip to content
Snippets Groups Projects
Commit 3e4f79ea authored by Stefano Borini's avatar Stefano Borini
Browse files

Documentation to service routines

parent b44f9b14
No related branches found
No related tags found
1 merge request!50Introduced logging in case of plugin load error
......@@ -52,12 +52,17 @@ class BDSSApplication(Application):
def _import_extensions(plugins, ext):
"""Service routine extracted for testing.
Imports the extension in the plugins argument.
"""
logging.info("Found extension {}".format(ext.obj))
plugins.append(ext.obj)
def _load_failure_callback(plugins, manager, entry_point, exception):
"""Reports failure to load a module through stevedore.
"""Service routine extracted for testing.
Reports failure to load a module through stevedore, using the
on_load_failure_callback option.
"""
logging.error(
"Unable to load plugin {}. Exception: {}. Message: {}".format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment