From 0c95227f2f6377c1a57efa94dbf00910366bef6f Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 13 Sep 2011 22:03:02 +0100 Subject: [PATCH] avatar-cache: Add some more debug output --- folks/avatar-cache.vala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/folks/avatar-cache.vala b/folks/avatar-cache.vala index 232e8d3..844d0db 100644 --- a/folks/avatar-cache.vala +++ b/folks/avatar-cache.vala @@ -93,6 +93,8 @@ public class Folks.AvatarCache : Object { var avatar_file = this._get_avatar_file (id); + debug ("Loading avatar '%s' from file '%s'.", id, avatar_file.get_uri ()); + // Return null if the avatar doesn't exist if (avatar_file.query_exists () == false) { @@ -120,6 +122,9 @@ public class Folks.AvatarCache : Object { var dest_avatar_file = this._get_avatar_file (id); + debug ("Storing avatar '%s' in file '%s'.", id, + dest_avatar_file.get_uri ()); + // Copy the icon data into a file while (true) { @@ -167,6 +172,9 @@ public class Folks.AvatarCache : Object public async void remove_avatar (string id) throws GLib.Error { var avatar_file = this._get_avatar_file (id); + + debug ("Removing avatar '%s' in file '%s'.", id, avatar_file.get_uri ()); + try { avatar_file.delete (null); -- 2.7.4