Skip to content

Commit 5a0ebe9

Browse files
committed
Add propagate as true
1 parent 1dff8b5 commit 5a0ebe9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

lisa/ai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
logger = logging.getLogger("ala")
77
# Prevent this logger from propagating messages to the root
8-
logger.propagate = False
8+
# logger.propagate = False

lisa/ai/default_flow.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,7 @@ def __init__(
449449
plugin.list_files,
450450
]
451451
chat_options = create_agent_chat_options()
452-
super().__init__(
453-
chat_client=chat_client,
452+
return chat_client.create_agent(
454453
name=name,
455454
description=description,
456455
instructions=instructions,
@@ -639,6 +638,7 @@ async def async_analyze_default(
639638
)
640639

641640
logger.info("Building Sequential workflow...")
641+
print("Building Sequential workflow...")
642642
workflow = (
643643
SequentialBuilder()
644644
.participants(
@@ -652,20 +652,24 @@ async def async_analyze_default(
652652
)
653653

654654
logger.info("executing run...")
655+
print("Executing run...")
655656

656657
async def _run() -> str:
657658
final_text: str = ""
659+
print("running workflow run stream...")
658660
async for event in workflow.run_stream(analysis_prompt):
659661
# Lifecycle: executor invoked
660662
if isinstance(event, ExecutorInvokedEvent):
661663
exec_id = getattr(event, "executor_id", None)
662664
logger.info(f"[ExecutorInvoked] executor={exec_id}")
665+
print(f"[ExecutorInvoked] executor={exec_id}")
663666
continue
664667

665668
# Lifecycle: executor completed
666669
if isinstance(event, ExecutorCompletedEvent):
667670
exec_id = getattr(event, "executor_id", None)
668671
logger.info(f"[ExecutorCompleted] executor={exec_id}")
672+
print(f"[ExecutorCompleted] executor={exec_id}")
669673
continue
670674

671675
# Final aggregated output from SequentialBuilder: list[ChatMessage]

lisa/util/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def init_logger() -> None:
150150
# during initialization. logging.basicConfig() is used for configuration of root
151151
# and it might automatically attach a StreamHandler that writes to sys.stderr.
152152
# Setting propagate to False to prevent messages from being propagated to root
153-
root_logger.propagate = False
153+
# root_logger.propagate = False
154154

155155
stdout_logger = get_logger("stdout")
156156
stderr_logger = get_logger("stderr")

0 commit comments

Comments
 (0)