summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-09-29 20:15:01 -0300
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-09-29 20:15:01 -0300
commitc2b45dae21e2975a41872d1d78e3248e89f7f603 (patch)
treeb99d1b64642c10c1f6c67a5756fb82a766ccb5a8
parente2e96874cf73f9698a54195ffadef95158457f30 (diff)
ContactManager: Add debug/warning for invoking RefreshContactInfo.
-rw-r--r--TelepathyQt4/contact-manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/TelepathyQt4/contact-manager.cpp b/TelepathyQt4/contact-manager.cpp
index 1c8d5d51..a01a7dd9 100644
--- a/TelepathyQt4/contact-manager.cpp
+++ b/TelepathyQt4/contact-manager.cpp
@@ -140,6 +140,7 @@ void ContactManager::PendingRefreshContactInfo::refreshInfo()
return;
}
+ debug() << "Calling ContactInfo.RefreshContactInfo for handles" << mToRequest.toList();
Client::ConnectionInterfaceContactInfoInterface *contactInfoInterface =
mConn->interface<Client::ConnectionInterfaceContactInfoInterface>();
Q_ASSERT(contactInfoInterface);
@@ -154,8 +155,11 @@ void ContactManager::PendingRefreshContactInfo::refreshInfo()
void ContactManager::PendingRefreshContactInfo::onRefreshInfoFinished(PendingOperation *op)
{
if (op->isError()) {
+ warning() << "ContactInfo.RefreshContactInfo for handles" << mToRequest.toList() <<
+ "failed with" << op->errorName() << "-" << op->errorMessage();
setFinishedWithError(op->errorName(), op->errorMessage());
} else {
+ debug() << "Got reply to ContactInfo.RefreshContactInfo for handles" << mToRequest.toList();
setFinished();
}
}