Fix error logging for channel retrieval failure

This commit is contained in:
IcedTangerine
2025-10-18 23:06:25 +08:00
committed by GitHub
parent 2f5d43fa61
commit 3b14ecedaf

View File

@@ -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",