[SCM] morituri/master: make things more loggable

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:35 UTC 2014


The following commit has been merged in the master branch:
commit fb39764923fb2bff16d962dcf1c9abcec761754e
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Tue Sep 20 08:07:11 2011 +0000

    make things more loggable

diff --git a/morituri/image/image.py b/morituri/image/image.py
index 0e7c271..55ee354 100644
--- a/morituri/image/image.py
+++ b/morituri/image/image.py
@@ -100,7 +100,7 @@ class Image(object, log.Loggable):
         self.debug('setup image done')
 
 
-class AccurateRipChecksumTask(task.MultiSeparateTask):
+class AccurateRipChecksumTask(log.Loggable, task.MultiSeparateTask):
     """
     I calculate the AccurateRip checksums of all tracks.
     """
@@ -135,7 +135,7 @@ class AccurateRipChecksumTask(task.MultiSeparateTask):
         self.checksums = [t.checksum for t in self.tasks]
         task.MultiSeparateTask.stop(self)
 
-class AudioLengthTask(gstreamer.GstPipelineTask):
+class AudioLengthTask(log.Loggable, gstreamer.GstPipelineTask):
     """
     I calculate the length of a track in audio frames.
 
@@ -155,6 +155,7 @@ class AudioLengthTask(gstreamer.GstPipelineTask):
         assert type(path) is unicode, "%r is not unicode" % path
 
         self._path = path
+        self.logName = os.path.basename(path)
 
     def getPipelineDesc(self):
         return '''
@@ -185,7 +186,7 @@ class AudioLengthTask(gstreamer.GstPipelineTask):
         self.pipeline.set_state(self.gst.STATE_NULL)
         self.stop()
 
-class ImageVerifyTask(task.MultiSeparateTask):
+class ImageVerifyTask(log.Loggable, task.MultiSeparateTask):
     """
     I verify a disk image and get the necessary track lengths.
     """
@@ -234,7 +235,7 @@ class ImageVerifyTask(task.MultiSeparateTask):
 
         task.MultiSeparateTask.stop(self)
 
-class ImageEncodeTask(task.MultiSeparateTask):
+class ImageEncodeTask(log.Loggable, task.MultiSeparateTask):
     """
     I encode a disk image to a different format.
     """

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list