[pitivi/ges: 149/287] pitivi: Some debug logging enhancements



commit 28f27b9c7abaeb88dcedb3d014f45f4f59e6fc25
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Sat Jan 7 14:28:52 2012 -0300

    pitivi: Some debug logging enhancements

 pitivi/sourcelist.py    |    3 +++
 pitivi/ui/mainwindow.py |    2 +-
 pitivi/ui/sourcelist.py |    1 +
 3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/sourcelist.py b/pitivi/sourcelist.py
index 26ecae4..b484627 100644
--- a/pitivi/sourcelist.py
+++ b/pitivi/sourcelist.py
@@ -106,6 +106,7 @@ class SourceList(Signallable, Loggable):
         self.nb_imported_files = 0
         for uri in uris:
             self.addUri(uri)
+        self.debug("Adding %s", uris)
         self.emit("ready")
 
     def removeUri(self, uri):
@@ -122,6 +123,8 @@ class SourceList(Signallable, Loggable):
             # this can only happen if discoverer hasn't finished scanning the
             # source, so info must be None
             assert info is None
+
+        self.debug("Removing %s", uri)
         self.emit("source-removed", uri, info)
 
     def getInfoFromUri(self, uri):
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 8d45ec1..45c41f3 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -723,7 +723,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
     def _projectManagerNewProjectLoadingCb(self, projectManager, uri):
         if uri != None:
             self.manager.add_item(uri)
-        self.log("A NEW project is being loaded, deactivate UI")
+        self.log("A NEW project is being loading, deactivate UI")
 
     def _projectManagerSaveProjectFailedCb(self, projectManager,
             project, uri):
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 04c103c..4aa880f 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -666,6 +666,7 @@ class SourceList(gtk.VBox, Loggable):
         if not len(model):
             self._displayHelpText()
             self.search_hbox.hide()
+        self.debug("Removing %s", uri)
 
     def _discoveryErrorCb(self, unused_sourcelist, uri, reason, extra):
         """ The given uri isn't a media file """



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]