mpris-listener: Fix exceptions on logging

This commit is contained in:
Teemu Ikonen 2022-04-04 11:42:17 +03:00
parent 1aae54f14c
commit f97116d637

View file

@ -125,7 +125,7 @@ class CurrentTrackTracker(object):
('status' not in kwargs or kwargs['status'] == 'Playing') and not
subsecond_difference(cur['pos'], kwargs['pos'])):
logger.debug('notify Stopped: playback discontinuity:' +
'calc: %f observed: %f', cur['pos'], kwargs['pos'])
'calc: %r observed: %r', cur['pos'], kwargs['pos'])
self.notify_stop()
if ((kwargs['pos']) == 0 and
@ -159,7 +159,7 @@ class CurrentTrackTracker(object):
if self.status == 'Playing':
self.notify_playing()
else:
logger.debug('notify Stopped: status %s', self.status)
logger.debug('notify Stopped: status %r', self.status)
self.notify_stop()
def getinfo(self):