diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-09 17:46:04 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-09 17:46:06 +0800 |
commit | b6b101f9cc8a355b8df4d1e469840d1002207da7 (patch) | |
tree | e35505283eead6a83d4a4c92fd994c0268990ac0 | |
parent | 018480bfd25b57c8136e5b6825937e8051a2cded (diff) | |
download | gsoc2013-empathy-b6b101f9cc8a355b8df4d1e469840d1002207da7.tar gsoc2013-empathy-b6b101f9cc8a355b8df4d1e469840d1002207da7.tar.gz gsoc2013-empathy-b6b101f9cc8a355b8df4d1e469840d1002207da7.tar.bz2 gsoc2013-empathy-b6b101f9cc8a355b8df4d1e469840d1002207da7.tar.lz gsoc2013-empathy-b6b101f9cc8a355b8df4d1e469840d1002207da7.tar.xz gsoc2013-empathy-b6b101f9cc8a355b8df4d1e469840d1002207da7.tar.zst gsoc2013-empathy-b6b101f9cc8a355b8df4d1e469840d1002207da7.zip |
individual-store-manager: always display individual's alias in debug messages
It's much more useful that just the ID.
-rw-r--r-- | libempathy-gtk/empathy-individual-store-manager.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-individual-store-manager.c b/libempathy-gtk/empathy-individual-store-manager.c index 288d9e379..f8610cf16 100644 --- a/libempathy-gtk/empathy-individual-store-manager.c +++ b/libempathy-gtk/empathy-individual-store-manager.c @@ -76,15 +76,19 @@ individual_store_manager_members_changed_cb (EmpathyIndividualManager *manager, for (l = removed; l; l = l->next) { - DEBUG ("Individual %s %s", - folks_individual_get_id (l->data), "removed"); + DEBUG ("Individual %s (%s) %s", + folks_individual_get_id (l->data), + folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (l->data)), + "removed"); individual_store_remove_individual_and_disconnect (store, l->data); } for (l = added; l; l = l->next) { - DEBUG ("Individual %s %s", folks_individual_get_id (l->data), "added"); + DEBUG ("Individual %s (%s) %s", folks_individual_get_id (l->data), + folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (l->data)), + "added"); individual_store_add_individual_and_connect (store, l->data); } @@ -99,8 +103,9 @@ individual_store_manager_groups_changed_cb (EmpathyIndividualManager *manager, { EmpathyIndividualStore *store = EMPATHY_INDIVIDUAL_STORE (self); - DEBUG ("Updating groups for individual %s", - folks_individual_get_id (individual)); + DEBUG ("Updating groups for individual %s (%s)", + folks_individual_get_id (individual), + folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (individual))); /* We do this to make sure the groups are correct, if not, we * would have to check the groups already set up for each @@ -163,8 +168,9 @@ individual_store_manager_member_renamed_cb (EmpathyIndividualManager *manager, { EmpathyIndividualStore *store = EMPATHY_INDIVIDUAL_STORE (self); - DEBUG ("Individual %s renamed to %s", + DEBUG ("Individual %s (%s) renamed to %s", folks_individual_get_id (old_individual), + folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (old_individual)), folks_individual_get_id (new_individual)); /* remove old contact */ |