[folks] eds: Add debugging information to PersonaStore._commit_modified_property()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] eds: Add debugging information to PersonaStore._commit_modified_property()
- Date: Sun, 16 Feb 2014 16:26:03 +0000 (UTC)
commit 7d45d5297adafe3cfc16f3229c6dce1392a20fa5
Author: Philip Withnall <philip tecnocode co uk>
Date: Sun Feb 16 16:25:07 2014 +0000
eds: Add debugging information to PersonaStore._commit_modified_property()
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 0c6b9c1..e048eb5 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]