[empathy] individual-store-manager: always display individual's alias in debug messages
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] individual-store-manager: always display individual's alias in debug messages
- Date: Fri, 9 Mar 2012 09:48:33 +0000 (UTC)
commit b6b101f9cc8a355b8df4d1e469840d1002207da7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Mar 9 10:46:04 2012 +0100
individual-store-manager: always display individual's alias in debug messages
It's much more useful that just the ID.
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 288d9e3..f8610cf 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]