debug better

This commit is contained in:
Thomas Vander Stichele
2013-01-18 19:24:09 +01:00
parent 0735c716d1
commit 20cb0b3180
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class ChecksumTask(log.Loggable, gstreamer.GstPipelineTask):
self.logName = "ChecksumTask 0x%x" % id(self)
# use repr/%r because path can be unicode
self.debug('Creating checksum task on %r from %d to %d',
self.debug('Creating checksum task on %r from frame %d to frame %d',
path, frameStart, frameLength)
if not os.path.exists(path):
raise IndexError('%r does not exist' % path)

View File

@@ -120,7 +120,8 @@ class AccurateRipChecksumTask(log.Loggable, task.MultiSeparateTask):
for trackIndex, track in enumerate(cue.table.tracks):
index = track.indexes[1]
length = cue.getTrackLength(track)
self.debug('track %d has length %d' % (trackIndex + 1, length))
self.debug('track %d is %d frames long' % (
trackIndex + 1, length))
path = image.getRealPath(index.path)