We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1819840 commit ea851f2Copy full SHA for ea851f2
src/crewai/agent.py
@@ -272,13 +272,9 @@ def execute_task(
272
# Add the reasoning plan to the task description
273
task.description += f"\n\nReasoning Plan:\n{reasoning_output.plan.plan}"
274
except Exception as e:
275
- if hasattr(self, "_logger"):
276
- self._logger.log(
277
- "error", f"Error during reasoning process: {e!s}"
278
- )
279
- else:
280
- print(f"Error during reasoning process: {e!s}")
281
-
+ self._logger.log(
+ "error", f"Error during reasoning process: {e!s}"
+ )
282
self._inject_date_to_task(task)
283
284
if self.tools_handler:
0 commit comments