fix(transcode): log warning for invalid or stale transcode tokens
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
cc18bf7329
commit
9a2eb483e8
1 changed files with 1 additions and 0 deletions
|
|
@ -370,6 +370,7 @@ func (api *Router) GetTranscodeStream(w http.ResponseWriter, r *http.Request) (*
|
||||||
if err != nil {
|
if err != nil {
|
||||||
switch {
|
switch {
|
||||||
case errors.Is(err, stream.ErrTokenInvalid), errors.Is(err, stream.ErrTokenStale):
|
case errors.Is(err, stream.ErrTokenInvalid), errors.Is(err, stream.ErrTokenStale):
|
||||||
|
log.Warn(ctx, "Invalid or stale transcode token", "mediaID", mediaID, err)
|
||||||
http.Error(w, "Gone", http.StatusGone)
|
http.Error(w, "Gone", http.StatusGone)
|
||||||
default:
|
default:
|
||||||
log.Error(ctx, "Error validating transcode params", err)
|
log.Error(ctx, "Error validating transcode params", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue