mpris-listener: Fix exceptions on logging
This commit is contained in:
parent
1aae54f14c
commit
f97116d637
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue