From 3b14ecedafe35d27c3bb677fa982aef40027a9da Mon Sep 17 00:00:00 2001 From: IcedTangerine Date: Sat, 18 Oct 2025 23:06:25 +0800 Subject: [PATCH] Fix error logging for channel retrieval failure --- controller/video_proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/video_proxy.go b/controller/video_proxy.go index df4aa911..2bfb0dc2 100644 --- a/controller/video_proxy.go +++ b/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",