Skip to content
Snippets Groups Projects
Commit 1be56480 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Try to output more info when exceptions occur

parent 394c73a9
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Executor:
self._running_actions.remove(d)
exception = d.exception()
if exception:
logger.critical(exception)
logger.opt(exception=exception).critical("An error occurred!")
if self._pending_actions:
logger.error(f"Waiting for other running actions to terminate: {self._pending_actions}")
self._pending_actions = set()
......
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