mirror of
https://github.com/gowvp/gb28181.git
synced 2026-04-22 23:17:19 +08:00
日志记录上下文
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user