Ver Fonte

Fix error logging for channel retrieval failure

IcedTangerine há 4 meses atrás
pai
commit
37776c5083
1 ficheiros alterados com 1 adições e 1 exclusões
  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",