core: Log full backend exception

This commit is contained in:
Stein Magnus Jodal 2015-07-23 19:14:08 +02:00
parent dd92a59e4c
commit 0bf67e296f

View File

@ -348,8 +348,11 @@ class PlaybackController(object):
backend.playback.change_track(tl_track.track).get() and
backend.playback.play().get())
except TypeError:
logger.error('%s needs to be updated to work with this '
'version of Mopidy.', backend)
logger.error(
'%s needs to be updated to work with this '
'version of Mopidy.',
backend.actor_ref.actor_class.__name__)
logger.debug('Backend exception', exc_info=True)
if success:
self.core.tracklist._mark_playing(tl_track)