Merge remote-tracking branch 'bok/develop' into develop

This commit is contained in:
Stein Magnus Jodal 2011-03-30 19:39:23 +02:00
commit 4a5c0a621d

View File

@ -34,6 +34,9 @@ class SpotifySessionManager(spotify.manager.SpotifySessionManager, BaseThread):
def logged_in(self, session, error):
"""Callback used by pyspotify"""
if error:
logger.error(u'Spotify login error: %s', error)
return
logger.info(u'Connected to Spotify')
self.session = session
if settings.SPOTIFY_HIGH_BITRATE:
@ -55,7 +58,7 @@ class SpotifySessionManager(spotify.manager.SpotifySessionManager, BaseThread):
def connection_error(self, session, error):
"""Callback used by pyspotify"""
logger.error(u'Connection error: %s', error)
logger.error(u'Spotify connection error: %s', error)
def message_to_user(self, session, message):
"""Callback used by pyspotify"""