Show cached in info log
This commit is contained in:
parent
9b1d5c196f
commit
58b816c2ed
1 changed files with 2 additions and 1 deletions
|
|
@ -88,11 +88,12 @@ func (ms *mediaStreamer) NewStream(ctx context.Context, id string, reqFormat str
|
||||||
log.Error(ctx, "Error accessing transcoding cache", "id", mf.ID, err)
|
log.Error(ctx, "Error accessing transcoding cache", "id", mf.ID, err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
cached = r.Cached
|
||||||
|
|
||||||
log.Debug(ctx, "Streaming TRANSCODED file", "id", mf.ID, "path", mf.Path,
|
log.Debug(ctx, "Streaming TRANSCODED file", "id", mf.ID, "path", mf.Path,
|
||||||
"requestBitrate", reqBitRate, "requestFormat", reqFormat,
|
"requestBitrate", reqBitRate, "requestFormat", reqFormat,
|
||||||
"originalBitrate", mf.BitRate, "originalFormat", mf.Suffix,
|
"originalBitrate", mf.BitRate, "originalFormat", mf.Suffix,
|
||||||
"selectedBitrate", bitRate, "selectedFormat", format, "cached", r.Cached)
|
"selectedBitrate", bitRate, "selectedFormat", format, "cached", cached)
|
||||||
|
|
||||||
s.Reader = r
|
s.Reader = r
|
||||||
s.Closer = r
|
s.Closer = r
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue