feat: 实现日志追踪链路 #185

Merged
huanghaosheng merged 30 commits from feature/log-track into develop 2026-06-21 23:23:23 +08:00
Showing only changes of commit 89d7b7c17c - Show all commits

View File

@@ -11,6 +11,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/hhs/camtalk/internal/util"
"go.uber.org/zap" "go.uber.org/zap"
) )
@@ -108,7 +109,10 @@ func (m *MiMoService) SynthesizeStream(ctx context.Context, textStream <-chan st
audio, err := m.synthesize(ctx, text, voice) audio, err := m.synthesize(ctx, text, voice)
if err != nil { if err != nil {
m.logger.Warnw("mimo tts: synthesize failed", "error", err, "text", text) m.logger.Warnw("mimo tts: synthesize failed",
"error", err,
"text_len", len(text),
"text_preview", util.Truncate(text, 100))
// 静默跳过,不中断整个流 // 静默跳过,不中断整个流
continue continue
} }