日志记录上下文

This commit is contained in:
xugo
2025-08-11 19:03:29 +08:00
parent ffd2fc2e27
commit 4b84ad30d2
11 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func (a PushAPI) findStreamPush(c *gin.Context, in *push.FindStreamPushInput) (*
cacheFn := hook.UseCache(func(s string) (*sms.MediaServer, error) {
v, err := a.smsCore.GetMediaServer(c.Request.Context(), s)
if err != nil {
slog.Error("GetMediaServer", "err", err)
slog.ErrorContext(c.Request.Context(), "GetMediaServer", "err", err)
}
return v, err
})