Skip to content

Commit

Permalink
style: 优化日志输出
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Nov 5, 2024
1 parent e331d6c commit 559d7ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handler/emby.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (embyServerHandler *EmbyServerHandler) VideosHandler(ctx *gin.Context) {
for _, prefix := range config.HTTPStrm.PrefixList {
if strings.HasPrefix(*item.Path, prefix) {
logger.Debug(*item.Path, " 匹配 HTTPStrm 路径:", prefix, " 成功")
logger.Info("HTTP 协议Strm 重定向:", *mediasource.Path)
logger.Info("HTTPStrm 重定向至:", *mediasource.Path)
ctx.Redirect(http.StatusFound, *mediasource.Path)
return
}
Expand All @@ -103,7 +103,7 @@ func (embyServerHandler *EmbyServerHandler) VideosHandler(ctx *gin.Context) {
logger.Warning("请求 FsGet 失败:", err)
return
}
logger.Info("AlistStrm 重定向:", fsGetData.RawURL)
logger.Info("AlistStrm 重定向至:", fsGetData.RawURL)
ctx.Redirect(http.StatusFound, fsGetData.RawURL)
return
}
Expand Down

0 comments on commit 559d7ab

Please sign in to comment.