[folks] individual: Add more debug output to Individual



commit 512bf8aff81106e3be92cb532079a3ef5f56c23a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jul 26 22:32:51 2011 +0100

    individual: Add more debug output to Individual

 folks/individual.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index 1c964e5..ee64d52 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -684,6 +684,9 @@ public class Folks.Individual : Object,
    */
   public Individual (Set<Persona>? personas)
     {
+      debug ("Creating new Individual with %u Personas: %p",
+          (personas != null ? personas.size : 0), this);
+
       this._im_addresses = new HashMultiMap<string, string> ();
       this._web_service_addresses = new HashMultiMap<string, string> ();
       this._persona_set =
@@ -711,6 +714,11 @@ public class Folks.Individual : Object,
       this.personas = personas;
     }
 
+  ~Individual ()
+    {
+      debug ("Destroying Individual '%s': %p", this.id, this);
+    }
+
   /* Emit the personas-changed signal, turning null parameters into empty sets
    * and ensuring that the signal is emitted with read-only views of the sets
    * so that signal handlers can't modify the sets. */



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