fix: 移除 antigravity 模块中的 [Debug] 日志

这些调试日志不应在生产环境中输出。
This commit is contained in:
song
2026-01-02 11:44:32 +08:00
parent 45e28dd9c1
commit 9ed823fdbd
2 changed files with 1 additions and 21 deletions

View File

@@ -350,15 +350,6 @@ func (s *AntigravityGatewayService) Forward(ctx context.Context, c *gin.Context,
return nil, fmt.Errorf("transform request: %w", err)
}
// 调试:记录转换后的请求体(仅记录前 2000 字符)
if bodyJSON, err := json.Marshal(geminiBody); err == nil {
truncated := string(bodyJSON)
if len(truncated) > 2000 {
truncated = truncated[:2000] + "..."
}
log.Printf("[Debug] Transformed Gemini request: %s", truncated)
}
// 构建上游 action
action := "generateContent"
if claudeReq.Stream {