summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-07 15:41:55 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-08-07 16:25:19 +0100
commit37051f7bb56b5e32f5d4e8a14abfc120d5786f13 (patch)
tree4c506c1d5b879cef6533a2803aeaff7024e9f38f
parent2acac069495b7596da2b9bf10146dca0fc4f799f (diff)
roster: debug when we add, or assume the presence of, a contact
-rw-r--r--ytstenut/yts-roster.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ytstenut/yts-roster.c b/ytstenut/yts-roster.c
index 02663b2..d87ff6d 100644
--- a/ytstenut/yts-roster.c
+++ b/ytstenut/yts-roster.c
@@ -24,6 +24,7 @@
#include <gio/gio.h>
#include <telepathy-ytstenut-glib/telepathy-ytstenut-glib.h>
+#include "ytstenut-internal.h"
#include "yts-contact-impl.h"
#include "yts-contact-internal.h"
#include "yts-marshal.h"
@@ -463,6 +464,8 @@ yts_roster_add_service (YtsRoster *self,
YtsService *service;
YtsServiceFactory *factory = yts_service_factory_get_default ();
+ DEBUG ("contact=%s, service=%s, type=%s", contact_id, service_id, type);
+
service = yts_service_factory_create_service (factory,
caps,
service_id,
@@ -473,6 +476,7 @@ yts_roster_add_service (YtsRoster *self,
contact = yts_roster_find_contact_by_id (self, contact_id);
if (contact) {
+ DEBUG ("we already have that contact");
yts_contact_add_service (contact, service);
} else {
@@ -482,6 +486,7 @@ yts_roster_add_service (YtsRoster *self,
TP_CONTACT_FEATURE_AVATAR_DATA,
TP_CONTACT_FEATURE_CAPABILITIES };
+ DEBUG ("adding that contact later, when we get a TpContact");
tp_connection_get_contacts_by_id (tp_connection,
1,
&contact_id,
@@ -504,6 +509,7 @@ yts_roster_update_contact_status (YtsRoster *self,
YtsRosterPrivate *priv = GET_PRIVATE (self);
YtsContact *contact;
+ DEBUG ("contact=%s service=%s fqc=%s", contact_id, service_id, fqc_id);
contact = g_hash_table_lookup (priv->contacts, contact_id);
g_return_if_fail (contact);