@@ -121,6 +121,14 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
121121 }
122122 result := policy .ShouldTranscode (r .Header , s .cfg .Clients )
123123 if result .Enabled {
124+ logging .Infof (
125+ "playbackinfo request item=%s profile=%s ua=%q query=%s token=%t" ,
126+ itemID ,
127+ result .ProfileName ,
128+ r .Header .Get ("User-Agent" ),
129+ redactURLString ("?" + r .URL .RawQuery ),
130+ embyTokenFromHeaders (r .Header ) != "" ,
131+ )
124132 logging .Infof ("playbackinfo rewrite item=%s profile=%s" , itemID , result .ProfileName )
125133 s .handlePlaybackInfo (w , r )
126134 return
@@ -231,6 +239,16 @@ func (s *Server) handlePlaybackInfo(w http.ResponseWriter, r *http.Request) {
231239 })
232240 }
233241 s .transcodeManager .RememberMedia (source .SessionID , mediaInfo )
242+ logging .Infof (
243+ "playbackinfo source item=%s session=%s index=%d source_id=%q direct=%t transcode=%t after=%s" ,
244+ itemID ,
245+ source .SessionID ,
246+ source .Index ,
247+ source .ID ,
248+ source .BeforeSupportsDirectPlay ,
249+ source .BeforeSupportsTranscode ,
250+ redactURLString (source .AfterTranscodingURL ),
251+ )
234252 logging .Debugf (
235253 "playbackinfo source item=%s session=%s index=%d source_id=%q before_direct=%t before_transcode=%t had_direct_stream_url=%t had_transcoding_url=%t after=%s media=%s" ,
236254 itemID ,
@@ -289,7 +307,13 @@ func (s *Server) prewarmPlaybackInfoTranscode(r *http.Request, report emby.Rewri
289307 if info , ok := s .transcodeManager .MediaInfo (source .SessionID ); ok {
290308 request .Media = info
291309 }
292- logging .Debugf ("playbackinfo prewarm request item=%s source=%s" , itemID , source .ID )
310+ logging .Infof (
311+ "playbackinfo prewarm request item=%s source=%s query=%s input=%s" ,
312+ itemID ,
313+ source .ID ,
314+ redactURLString ("?" + r .URL .RawQuery ),
315+ redactURLString (inputURL ),
316+ )
293317 started := time .Now ()
294318 go func () {
295319 if _ , ok := s .transcodeManager .Get (source .SessionID ); ok {
0 commit comments