Skip to content

Commit

Permalink
Set ignored media log message level to debug
Browse files Browse the repository at this point in the history
Fixes #121.
  • Loading branch information
anacrolix committed May 10, 2023
1 parent 6b8cae4 commit 9ce7673
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dlna/dms/cds.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@ func (me *contentDirectoryService) cdsObjectToUpnpavObject(cdsObject object, fil
}
if !mimeType.IsMedia() {
if isDmsMetadata {
me.Logger.Printf("%s ignored: enable support for dynamic streams via the -allowDynamicStreams command line flag", cdsObject.FilePath())
me.Logger.Levelf(
log.Debug,
"ignored %q: enable support for dynamic streams via the -allowDynamicStreams command line flag", cdsObject.FilePath())
} else {
me.Logger.Printf("%s ignored: non-media file (%s)", cdsObject.FilePath(), mimeType)
me.Logger.Levelf(log.Debug, "ignored %q: non-media file (%s)", cdsObject.FilePath(), mimeType)
}
return
}
Expand Down

0 comments on commit 9ce7673

Please sign in to comment.