Fix error logging for channel retrieval failure
This commit is contained in:
parent
2f5d43fa61
commit
3b14ecedaf
@ -60,7 +60,7 @@ func VideoProxy(c *gin.Context) {
|
|||||||
|
|
||||||
channel, err := model.CacheGetChannel(task.ChannelId)
|
channel, err := model.CacheGetChannel(task.ChannelId)
|
||||||
if err != nil {
|
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{
|
c.JSON(http.StatusInternalServerError, gin.H{
|
||||||
"error": gin.H{
|
"error": gin.H{
|
||||||
"message": "Failed to retrieve channel information",
|
"message": "Failed to retrieve channel information",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user