Skip to content

Commit

Permalink
fix: remove redundant exception message
Browse files Browse the repository at this point in the history
Removes the exception message content duplication in the logger
to prevent unnecessary redundancy since the exception details are
already captured by logger.exception.
  • Loading branch information
laipz8200 committed Nov 18, 2024
1 parent afd107f commit 2d8a720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/workflow/nodes/llm/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _run(self) -> NodeRunResult | Generator[NodeEvent | InNodeEvent, None, None]
)
return
except Exception as e:
logger.exception(f"Node {self.node_id} failed to run: {e}")
logger.exception(f"Node {self.node_id} failed to run")
yield RunCompletedEvent(
run_result=NodeRunResult(
status=WorkflowNodeExecutionStatus.FAILED,
Expand Down

0 comments on commit 2d8a720

Please sign in to comment.