fix: remove unnecessary content length logging in the chat stream response, simplifying the debug message while retaining essential information about run steps. This change enhances clarity in logging without losing critical context.

This commit is contained in:
Danny Avila 2025-12-12 19:33:36 -05:00
parent e53c02da85
commit e2305a4a76
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -67,9 +67,8 @@ router.get('/chat/stream/:streamId', async (req, res) => {
if (typeof res.flush === 'function') {
res.flush();
}
const textPart = resumeState.aggregatedContent?.find((p) => p.type === 'text');
logger.debug(
`[AgentStream] Sent sync event for ${streamId} with ${resumeState.runSteps.length} run steps, content length: ${textPart?.text?.length ?? 0}`,
`[AgentStream] Sent sync event for ${streamId} with ${resumeState.runSteps.length} run steps`,
);
}
}