Skip to content

Commit

Permalink
update raw log style
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Jan 2, 2024
1 parent 5bcd339 commit 59d2bd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/ctrlsubsonic/handlers_raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.R
return spec.NewError(0, "couldn't find transcode preference: %v", err)
}
if pref == nil {
log.Printf("serving raw file, no transcode preferences found for client %q", client)
log.Printf("serving raw file, no user transcode preferences found for client %q", client)
http.ServeFile(w, r, file.AbsPath())
return nil
}

if maxBitRate >= audioFile.AudioBitrate() {
log.Printf("serving raw file, requested max bitrate %dk is greater or equal to %dk", maxBitRate, audioFile.AudioBitrate())
log.Printf("serving raw file, requested max bitrate %d is greater or equal to %d", maxBitRate, audioFile.AudioBitrate())
http.ServeFile(w, r, file.AbsPath())
return nil
}
Expand All @@ -221,7 +221,7 @@ func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.R
profile = transcode.WithSeek(profile, time.Second*time.Duration(timeOffset))
}

log.Printf("trancoding to %q with at bitrate %dk", profile.MIME(), profile.BitRate())
log.Printf("trancoding to %q with at bitrate %d", profile.MIME(), profile.BitRate())

w.Header().Set("Content-Type", profile.MIME())
if err := c.transcoder.Transcode(r.Context(), profile, file.AbsPath(), w); err != nil && !errors.Is(err, transcode.ErrFFmpegKilled) {
Expand Down

0 comments on commit 59d2bd9

Please sign in to comment.