瀏覽代碼

Fix error logging for channel retrieval failure

IcedTangerine 4 月之前
父節點
當前提交
37776c5083
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controller/video_proxy.go

+ 1 - 1
controller/video_proxy.go

@@ -60,7 +60,7 @@ func VideoProxy(c *gin.Context) {
 
 	channel, err := model.CacheGetChannel(task.ChannelId)
 	if err != nil {
-		logger.LogError(c.Request.Context(), fmt.Sprintf("Failed to get channel %d: %s", task.ChannelId, err.Error()))
+		logger.LogError(c.Request.Context(), fmt.Sprintf("Failed to get task %s: not found", taskID))
 		c.JSON(http.StatusInternalServerError, gin.H{
 			"error": gin.H{
 				"message": "Failed to retrieve channel information",