From 6b4b033df3a1d4b8e8e52e2121b77eef4a28c156 Mon Sep 17 00:00:00 2001 From: hhs <386998068@qq.com> Date: Sun, 21 Jun 2026 22:37:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A5=E5=BF=97=E7=BA=A7=E5=88=AB?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=88Phase=207=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - nodes_stt.go: STT 识别开始降为 Debug - nodes_history.go: 历史组装完成降为 Debug - nodes_tts.go: TTS 流中断降为 Debug - 保持关键里程碑为 Info:query completed、tts synthesis started/completed - 中间步骤详情降为 Debug,减少生产环境日志噪音 --- backend/internal/eino/nodes_history.go | 2 +- backend/internal/eino/nodes_stt.go | 2 +- backend/internal/eino/nodes_tts.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/internal/eino/nodes_history.go b/backend/internal/eino/nodes_history.go index 23d7648..8099c98 100644 --- a/backend/internal/eino/nodes_history.go +++ b/backend/internal/eino/nodes_history.go @@ -121,7 +121,7 @@ func NewHistoryLambda( }) } - log.Infow("history assembled", + log.Debugw("history assembled", "message_count", len(messages), "has_image", len(imageData) > 0, "scenario", scenario) diff --git a/backend/internal/eino/nodes_stt.go b/backend/internal/eino/nodes_stt.go index 5ac368d..1a4a6b6 100644 --- a/backend/internal/eino/nodes_stt.go +++ b/backend/internal/eino/nodes_stt.go @@ -75,7 +75,7 @@ func NewSTTLambda(sttService stt.Service) *compose.Lambda { return STTOutput{}, fmt.Errorf("stt: no audio data provided") } - log.Infow("stt recognition started", "audio_bytes", len(input.AudioData)) + log.Debugw("stt recognition started", "audio_bytes", len(input.AudioData)) // 调用 STT 服务 text, err := sttService.Recognize(ctx, input.AudioData, stt.Options{ diff --git a/backend/internal/eino/nodes_tts.go b/backend/internal/eino/nodes_tts.go index ffef027..0f13a4d 100644 --- a/backend/internal/eino/nodes_tts.go +++ b/backend/internal/eino/nodes_tts.go @@ -87,7 +87,7 @@ func NewTTSLambda(ttsService tts.Service, ttsVoice string, ttsSpeed float64, tts for chunk := range ttsStream { select { case <-ctx.Done(): - log.Infow("TTS 流被中断") + log.Debugw("tts stream interrupted") sw.Send(struct{}{}, ctx.Err()) return default: