Stop outputting 200 lines of "recording service" while just verifying the list
authorMike Looijmans <milo-software@users.sourceforge.net>
Thu, 24 Dec 2009 13:43:35 +0000 (14:43 +0100)
committerMike Looijmans <milo-software@users.sourceforge.net>
Thu, 24 Dec 2009 13:43:35 +0000 (14:43 +0100)
Navigation.py
lib/nav/core.cpp

index 2ca87f6..ea10cbc 100644 (file)
@@ -81,7 +81,7 @@ class Navigation:
        
        def recordService(self, ref, simulate=False):
                service = None
-               print "recording service: %s" % (str(ref))
+               if not simulate: print "recording service: %s" % (str(ref))
                if isinstance(ref, ServiceReference.ServiceReference):
                        ref = ref.ref
                if ref:
index ad77766..fc518cf 100644 (file)
@@ -76,9 +76,11 @@ RESULT eNavigation::recordService(const eServiceReference &ref, ePtr<iRecordable
 {
        ASSERT(m_servicehandler);
        RESULT res = m_servicehandler->record(ref, service);
-       eDebug("record: %d", res);
        if (res)
+       {
+               eDebug("record: %d", res);
                service = 0;
+       }
        else
        {
                if (simulate)