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

Review

parent 0dccd4ba
No related branches found
No related tags found
1 merge request!108Introduced log file option
...@@ -69,6 +69,6 @@ def _load_failure_callback(plugins, manager, entry_point, exception): ...@@ -69,6 +69,6 @@ def _load_failure_callback(plugins, manager, entry_point, exception):
""" """
log.error( log.error(
"Unable to load plugin {}. Exception: {}. Message: {}".format( "Unable to load plugin {}. Exception: {}. Message: {}".format(
entry_point, exception.__class__.__name__, exception) entry_point, exception.__class__.__name__, exception),
exc_info=True,
) )
log.exception(exception)
...@@ -94,7 +94,7 @@ class WorkflowReader(HasStrictTraits): ...@@ -94,7 +94,7 @@ class WorkflowReader(HasStrictTraits):
wf.notification_listeners[:] = \ wf.notification_listeners[:] = \
self._extract_notification_listeners(wf_data) self._extract_notification_listeners(wf_data)
except KeyError as e: except KeyError as e:
log.exception("Could not read file {}".format(file)) log.error("Could not read file {}".format(file), exc_info=True)
raise InvalidFileException("Could not read file {}. " raise InvalidFileException("Could not read file {}. "
"Unable to find key {}".format(file, e)) "Unable to find key {}".format(file, e))
return wf return wf
......
...@@ -36,7 +36,6 @@ class TestBDSSApplication(unittest.TestCase): ...@@ -36,7 +36,6 @@ class TestBDSSApplication(unittest.TestCase):
'ERROR', 'ERROR',
"Unable to load plugin foo. Exception: " "Unable to load plugin foo. Exception: "
"Exception. Message: hello"), "Exception. Message: hello"),
('force_bdss.bdss_application', 'ERROR', 'hello')
) )
self.assertEqual(plugins, []) self.assertEqual(plugins, [])
......
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