send "failed reading file" message to debug

This message was being logged as an error every time MediaFile failed to parse a
file. But this is not actually an error -- the importer uses FileTypeErrors to
determine whether a file is music or not. This resulted in error logs for every
album art file, .m3u, etc. in the imported directory. Verbose output is a better
home for this message.
This commit is contained in:
Adrian Sampson 2012-10-26 21:04:18 -07:00
parent 57e66d7b1a
commit 99e36d870e

View file

@ -276,7 +276,7 @@ class Item(object):
try:
f = MediaFile(syspath(read_path))
except Exception:
log.error(u'failed reading file: {0}'.format(
log.debug(u'failed reading file: {0}'.format(
displayable_path(read_path))
)
raise