[empathy] empathy_contact_dup_from_folks_individual: add a debug msg if no contact is found



commit 68ef0da647171dc544ef4e16859a9519529863c6
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Sep 6 09:03:07 2011 +0200

    empathy_contact_dup_from_folks_individual: add a debug msg if no contact is found
    
    In most cases that's probably either an Empathy or Folks issue, so it's good
    to have some info to help debugging.

 libempathy/empathy-utils.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index ec41f9b..929779a 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -725,6 +725,12 @@ empathy_contact_dup_from_folks_individual (FolksIndividual *individual)
     }
   g_clear_object (&iter);
 
+  if (contact == NULL)
+    {
+      DEBUG ("Can't create an EmpathyContact for Individual %s",
+          folks_individual_get_id (individual))
+    }
+
   return contact;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]