feat(nodes): better invocation error messages

This commit is contained in:
psychedelicious 2024-02-18 11:42:53 +11:00
parent 0788b6ecee
commit 3cfac8b843

View File

@ -213,7 +213,9 @@ class DefaultSessionProcessor(SessionProcessorBase):
# Save error
self._queue_item.session.set_node_error(invocation.id, error)
self._invoker.services.logger.error("Error while invoking:\n%s" % e)
self._invoker.services.logger.error(
f"Error while invoking session {self._queue_item.session_id}, invocation {invocation.id} ({invocation.get_type()}):\n{e}"
)
# Send error event
self._invoker.services.events.emit_invocation_error(