[Telepathy-commits] [telepathy-qt4/master] Use the debug output system in Connection

Olli Salli olli.salli at collabora.co.uk
Mon Sep 22 04:58:08 PDT 2008


---
 TelepathyQt4/cli-connection.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/cli-connection.cpp b/TelepathyQt4/cli-connection.cpp
index b151f63..607fe0b 100644
--- a/TelepathyQt4/cli-connection.cpp
+++ b/TelepathyQt4/cli-connection.cpp
@@ -24,6 +24,8 @@
 #include <TelepathyQt4/_gen/cli-connection-body.hpp>
 #include <TelepathyQt4/_gen/cli-connection.moc.hpp>
 
+#include "debug.hpp"
+
 namespace Telepathy
 {
 namespace Client
@@ -144,7 +146,7 @@ void Connection::gotStatus(QDBusPendingCallWatcher* watcher)
         mPriv->status = reply.argumentAt<0>();
         statusChanged(reply.argumentAt<0>(), reply.argumentAt<1>());
     } else {
-        // TODO error reporting
+        warning().nospace() << "GetStatus() failed with " << reply.error().name() << ": " << reply.error().message();
     }
 }
 
@@ -154,7 +156,8 @@ void Connection::gotInterfaces(QDBusPendingCallWatcher* watcher)
 
     if (!reply.isError())
         mPriv->interfaces = reply.value();
-        // TODO error reporting
+    else
+        warning().nospace() << "GetInterfaces() failed with " << reply.error().name() << ": " << reply.error().message() << " - assuming no interfaces";
 
     // TODO introspect interfaces
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list