Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
chore: use custom logger
沈浩486e17e241ba
diff --git a/internal/handler/subtitle_task.go b/internal/handler/subtitle_task.goindex 82b5c41e..15a2adaa 100644--- a/internal/handler/subtitle_task.go+++ b/internal/handler/subtitle_task.go@@ -2,9 +2,10 @@ package handlerimport ("github.com/gin-gonic/gin"+ "go.uber.org/zap""krillin-ai/internal/dto""krillin-ai/internal/response"- "log"+ "krillin-ai/log""os""path/filepath")@@ -12,7 +13,7 @@ import (func (h Handler) StartSubtitleTask(c *gin.Context) {var req dto.StartVideoSubtitleTaskReqif err := c.ShouldBindJSON(&req); err != nil {- log.Printf("参数绑定错误: %v", err) // 打印详细的绑定错误信息+ log.GetLogger().Error("StartSubtitleTask ShouldBindJSON err", zap.Error(err))response.R(c, response.Response{Error: -1,Msg: "参数错误",