From 2163cff4d1bfec3b0fab8ee198d0c43a8c6bf155 Mon Sep 17 00:00:00 2001 From: Matt Aitchison Date: Tue, 19 May 2026 14:45:58 -0500 Subject: [PATCH] feat(flow): log each flow method execution at INFO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flows emit a Rich console message when they start ('Flow started with ID: …') but produce no further log line until the next significant event. When a flow appears to hang, this makes it hard to tell which @start/@listen method is currently running. Add a single INFO log at the entry of _execute_method that surfaces the active method name. This works for both @start methods and listeners since both paths funnel through _execute_method. --- lib/crewai/src/crewai/flow/flow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/crewai/src/crewai/flow/flow.py b/lib/crewai/src/crewai/flow/flow.py index d22794873..78051e27d 100644 --- a/lib/crewai/src/crewai/flow/flow.py +++ b/lib/crewai/src/crewai/flow/flow.py @@ -2633,6 +2633,7 @@ class Flow(BaseModel, Generic[T], metaclass=FlowMeta): the event_id of the MethodExecutionFinishedEvent, or None if events are suppressed. """ + logger.info("Executing flow method: %s", method_name) try: dumped_params = {f"_{i}": arg for i, arg in enumerate(args)} | ( kwargs or {}