changing log levels

This commit is contained in:
aj 2020-08-17 11:55:55 +01:00
parent 41ae299be6
commit c9d4840b64

View File

@ -109,7 +109,7 @@ def time_track_collection(tracks, spotnet: SpotNet, username: str, fmnet: FmNet
track_pairs.append((track, spottrack[0])) track_pairs.append((track, spottrack[0]))
else: else:
if fmnet is not None: if fmnet is not None:
logger.error(f'no track returned for search {track.name} / {track.artist.name} / {username}' logger.debug(f'no track returned for search {track.name} / {track.artist.name} / {username}'
f', pulling last.fm track') f', pulling last.fm track')
fmtrack = fmnet.track(name=track.name, artist=track.artist.name, username=username) fmtrack = fmnet.track(name=track.name, artist=track.artist.name, username=username)
@ -117,7 +117,7 @@ def time_track_collection(tracks, spotnet: SpotNet, username: str, fmnet: FmNet
if fmtrack is not None and fmtrack.duration is not None and fmtrack.duration > 0: if fmtrack is not None and fmtrack.duration is not None and fmtrack.duration > 0:
track_pairs.append((track, fmtrack)) track_pairs.append((track, fmtrack))
else: else:
logger.error(f'no duration found on last.fm for {track.name} / {track.artist.name} / {username}') logger.warning(f'no duration found on last.fm for {track.name} / {track.artist.name} / {username}')
else: else:
logger.error(f'no track returned for search {track.name} / {track.artist.name} / {username}' logger.error(f'no track returned for search {track.name} / {track.artist.name} / {username}'
f', no fmnet to use as fallback') f', no fmnet to use as fallback')