[Telepathy-commits] [telepathy-qt4/master] Added more debug.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Wed Jan 7 18:15:15 PST 2009


---
 TelepathyQt4/Client/connection-manager.cpp |    1 +
 TelepathyQt4/manager-file.cpp              |    5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/Client/connection-manager.cpp b/TelepathyQt4/Client/connection-manager.cpp
index c86bfe1..dd1b0c9 100644
--- a/TelepathyQt4/Client/connection-manager.cpp
+++ b/TelepathyQt4/Client/connection-manager.cpp
@@ -360,6 +360,7 @@ bool ConnectionManager::Private::checkConfigFile()
 void ConnectionManager::Private::callReadConfig()
 {
     if (!checkConfigFile()) {
+        warning() << "error parsing config file for connection manager" << name;
         introspectQueue.enqueue(&Private::callGetAll);
         introspectQueue.enqueue(&Private::callListProtocols);
     }
diff --git a/TelepathyQt4/manager-file.cpp b/TelepathyQt4/manager-file.cpp
index f60f961..4c379a7 100644
--- a/TelepathyQt4/manager-file.cpp
+++ b/TelepathyQt4/manager-file.cpp
@@ -91,8 +91,11 @@ void ManagerFile::Private::init()
     Q_FOREACH (const QString configDir, configDirs) {
         QString fileName = configDir + cmName + QLatin1String(".manager");
         if (QFile::exists(fileName)) {
-            if (!parse(fileName))
+            debug() << "parsing manager file" << fileName;
+            if (!parse(fileName)) {
+                warning() << "error parsing manager file" << fileName;
                 continue;
+            }
             return;
         }
     }
-- 
1.5.6.5



More information about the Telepathy-commits mailing list