fix: add exc_info to agent error log for debugging NoneType += str

This commit is contained in:
LIghtJUNction
2026-04-29 07:19:15 +08:00
parent 9f999e401d
commit 361f42f27d

View File

@@ -395,7 +395,7 @@ class InternalAgentSubStage(Stage):
unregister_active_runner(event.unified_msg_origin, agent_runner)
except Exception as e:
logger.error(f"Error occurred while processing agent: {e}")
logger.error(f"Error occurred while processing agent: {e}", exc_info=True)
custom_error_message = extract_persona_custom_error_message_from_event(
event
)