Change debug logging to INFO level for visibility

**Problem**: Debug logs weren't appearing because DEBUG level not enabled
in logger configuration.

**Solution**: Changed logger.debug() to logger.info() for:
- Message type logging (every 20th message)
- ResultMessage tracking (captured data summary)
- Tool usage listing

**Impact**: Can now see what message types are being received and why
tool tracking isn't working (important for diagnosing empty results).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 18:21:56 -07:00
parent 069a531064
commit d8b05173f7

View File

@@ -591,7 +591,7 @@ class LLMInterface:
# DEBUG: Log message type to understand what we're receiving
msg_type = type(message).__name__
if message_count <= 5 or message_count % 20 == 0:
logger.debug(f"[LLM] Message #{message_count}: {msg_type}")
logger.info(f"[LLM] Message #{message_count}: {msg_type}")
if isinstance(message, AssistantMessage) and hasattr(message, 'content'):
if isinstance(message.content, str):
@@ -607,9 +607,9 @@ class LLMInterface:
if isinstance(message, ResultMessage):
# DEBUG: Log what we captured during message processing
logger.debug(f"[LLM] ResultMessage: has_result={bool(message.result)}, assistant_msgs={len(assistant_messages)}, tool_calls={len(tool_names)}")
logger.info(f"[LLM] ResultMessage: has_result={bool(message.result)}, assistant_msgs={len(assistant_messages)}, tool_calls={len(tool_names)}")
if tool_names:
logger.debug(f"[LLM] Tools used: {', '.join(list(dict.fromkeys(tool_names))[:10])}")
logger.info(f"[LLM] Tools used: {', '.join(list(dict.fromkeys(tool_names))[:10])}")
result_text = message.result or "\n".join(assistant_messages)