From cd90c361a6c7634ae0197906211e1e49fc8e97de Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 18 Nov 2012 13:08:31 +0000 Subject: [PATCH] give a logname --- morituri/common/checksum.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/morituri/common/checksum.py b/morituri/common/checksum.py index a07c4be..542e795 100644 --- a/morituri/common/checksum.py +++ b/morituri/common/checksum.py @@ -60,6 +60,8 @@ class ChecksumTask(log.Loggable, gstreamer.GstPipelineTask): """ assert type(path) is unicode, "%r is not unicode" % path + 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', path, frameStart, frameLength) @@ -147,9 +149,8 @@ class ChecksumTask(log.Loggable, gstreamer.GstPipelineTask): def stopped(self): self.debug('stopped') if not self._last: - self.debug('raising EmptyError') # see http://bugzilla.gnome.org/show_bug.cgi?id=578612 - self.debug('not a single buffer gotten, raising') + self.debug('not a single buffer gotten, setting exception EmptyError') self.setException(common.EmptyError('not a single buffer gotten')) else: self._checksum = self._checksum % 2 ** 32