Skip to content

Commit be27750

Browse files
simegkingosticks
authored andcommitted
Log when refresh of playlists starts (mopidy#311)
I have ~1k playlists on my account so a refresh takes about 8 minutes. The logs gives no indication what is happening and I was confused so providing an explanation to what is happening would have been useful.
1 parent ee4fc8e commit be27750

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mopidy_spotify/playlists.py

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def refresh(self):
5353
if not self._backend._web_client.logged_in:
5454
return
5555

56+
logger.info("Refreshing Spotify playlists")
57+
5658
with utils.time_logger("playlists.refresh()", logging.DEBUG):
5759
_sp_links.clear()
5860
self._backend._web_client.clear_cache()

0 commit comments

Comments
 (0)