chore: add logger calls instead of prints (#5720)

add logger calls instead of prints
This commit is contained in:
Kian Jones
2025-10-23 17:38:57 -07:00
committed by Caren Thomas
parent e7e86124f9
commit 161c70f11c
6 changed files with 19 additions and 20 deletions

View File

@@ -83,10 +83,10 @@ class AsyncBaseMCPClient:
for content_piece in result.content:
if isinstance(content_piece, TextContent):
parsed_content.append(content_piece.text)
print("parsed_content (text)", parsed_content)
logger.debug(f"MCP tool result parsed content (text): {parsed_content}")
else:
parsed_content.append(str(content_piece))
print("parsed_content (other)", parsed_content)
logger.debug(f"MCP tool result parsed content (other): {parsed_content}")
if len(parsed_content) > 0:
final_content = " ".join(parsed_content)
else: