chore: remove raw sse chunk logging

This commit is contained in:
shaw
2025-07-20 00:19:00 +08:00
parent aa59178db3
commit 4291983c87

View File

@@ -550,12 +550,6 @@ class ClaudeRelayService {
res.on('data', (chunk) => { res.on('data', (chunk) => {
const chunkStr = chunk.toString(); const chunkStr = chunk.toString();
// 记录原始SSE数据块
logger.info('📡 Raw SSE chunk received:', {
length: chunkStr.length,
content: chunkStr
});
buffer += chunkStr; buffer += chunkStr;
// 处理完整的SSE行 // 处理完整的SSE行
@@ -569,11 +563,6 @@ class ClaudeRelayService {
} }
for (const line of lines) { for (const line of lines) {
// 记录每个SSE行
if (line.trim()) {
logger.info('📄 SSE Line:', line);
}
// 解析SSE数据寻找usage信息 // 解析SSE数据寻找usage信息
if (line.startsWith('data: ') && line.length > 6) { if (line.startsWith('data: ') && line.length > 6) {
try { try {