diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2014-02-16 16:25:07 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2014-02-16 16:25:07 +0000 |
commit | 7d45d5297adafe3cfc16f3229c6dce1392a20fa5 (patch) | |
tree | 19ccb3b3a70fb40c03ff01111c35d0467a55f32f | |
parent | 9f2d893a27e98bc9335ebf8b65da8360f0170805 (diff) |
eds: Add debugging information to PersonaStore._commit_modified_property()
-rw-r--r-- | backends/eds/lib/edsf-persona-store.vala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala index 0c6b9c15..e048eb5f 100644 --- a/backends/eds/lib/edsf-persona-store.vala +++ b/backends/eds/lib/edsf-persona-store.vala @@ -1227,6 +1227,16 @@ public class Edsf.PersonaStore : Folks.PersonaStore * if _addressbook is null. */ assert (this._addressbook != null); + var debug_obj = Debug.dup (); + if (debug_obj.debug_output_enabled == true) + { + debug ("Committing modified property ā%sā to persona %p (UID: %s).", + property_name, persona, persona.uid); + + debug ("Modified vCard: %s", + persona.contact.to_string (E.VCardFormat.@30)); + } + var contact = persona.contact; ulong signal_id = 0; @@ -1272,10 +1282,15 @@ public class Edsf.PersonaStore : Folks.PersonaStore * they can only be modified from the main loop. */ if (received_notification == false) { + debug ("Yielding."); has_yielded = true; yield; } + debug ("Finished: received_notification = %s, has_yielded = %s", + received_notification ? "yes" : "no", + has_yielded ? "yes" : "no"); + /* If we hit the timeout instead of the property notification, throw * an error. */ if (received_notification == false) |