[folks] telepathy: Add a couple of debug messages



commit 28114e2bdcf7ebb7549875e5116f7f7afa12545d
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Mar 26 23:19:26 2012 +0100

    telepathy: Add a couple of debug messages

 backends/telepathy/lib/tpf-persona-store.vala |    1 +
 backends/telepathy/lib/tpf-persona.vala       |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index f72ce75..157ee9e 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -602,6 +602,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
 
   private void _remove_store ()
     {
+      debug ("Removing store %s (%p)", this.id, this);
       this._emit_personas_changed (null, this._persona_set);
       this._cache.clear_cache ();
       this.removed ();
diff --git a/backends/telepathy/lib/tpf-persona.vala b/backends/telepathy/lib/tpf-persona.vala
index 597d134..0b23b33 100644
--- a/backends/telepathy/lib/tpf-persona.vala
+++ b/backends/telepathy/lib/tpf-persona.vala
@@ -468,6 +468,8 @@ public class Tpf.Persona : Folks.Persona,
 
   private void _contact_weak_notify_cb (Object obj)
     {
+      debug ("TpContact %p destroyed; setting ._contact = null in Persona %p",
+          obj, this);
       this._contact = null;
       this.notify_property ("contact");
     }



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