From 43963a005012dcd36d50f270fbc23a01e0d79000 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 6 Dec 2012 16:58:44 +0000 Subject: [PATCH] log all tasks --- morituri/common/encode.py | 6 +++--- morituri/common/task.py | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/morituri/common/encode.py b/morituri/common/encode.py index f00fc1b..5b0967a 100644 --- a/morituri/common/encode.py +++ b/morituri/common/encode.py @@ -297,7 +297,7 @@ class EncodeTask(ctask.GstPipelineTask): # self.peak = 0.0 -class TagReadTask(gstreamer.GstPipelineTask): +class TagReadTask(ctask.GstPipelineTask): """ I am a task that reads tags. @@ -334,7 +334,7 @@ class TagReadTask(gstreamer.GstPipelineTask): self.taglist = taglist -class TagWriteTask(task.Task): +class TagWriteTask(ctask.LoggableTask): """ I am a task that retags an encoded file. """ @@ -411,7 +411,7 @@ class TagWriteTask(task.Task): task.Task.stop(self) -class SafeRetagTask(task.MultiSeparateTask): +class SafeRetagTask(ctask.LoggableMultiSeparateTask): """ I am a task that retags an encoded file safely in place. First of all, if the new tags are the same as the old ones, it doesn't diff --git a/morituri/common/task.py b/morituri/common/task.py index f0591d5..a40acc2 100644 --- a/morituri/common/task.py +++ b/morituri/common/task.py @@ -16,6 +16,12 @@ class SyncRunner(log.Loggable, task.SyncRunner): pass +class LoggableTask(log.Loggable, task.Task): + pass + +class LoggableMultiSeparateTask(log.Loggable, task.MultiSeparateTask): + pass + class GstPipelineTask(log.Loggable, gstreamer.GstPipelineTask): pass