[telepathy-gabble/master] emit_search_result: display the keys that have been ignored

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Aug 26 09:22:03 PDT 2009


---
 src/search-channel.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/search-channel.c b/src/search-channel.c
index 8c87d20..eb1a021 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -518,7 +518,16 @@ emit_search_result (GabbleSearchChannel *chan,
     }
 
   if (g_hash_table_size (info_map) > 0)
-    DEBUG ("<item> contained fields we don't understand; ignoring them");
+    {
+      GHashTableIter iter;
+      gpointer key;
+
+      DEBUG ("<item> contained fields we don't understand; ignoring them:");
+
+      g_hash_table_iter_init (&iter, info_map);
+      while (g_hash_table_iter_next (&iter, &key, NULL))
+        DEBUG ("\t- %s has been ignored", (gchar *) key);
+    }
 
   gabble_svc_channel_type_contact_search_emit_search_result_received (chan, h, info);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list