[folks] avatar-cache: Add some more debug output



commit 0c95227f2f6377c1a57efa94dbf00910366bef6f
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Sep 13 22:03:02 2011 +0100

    avatar-cache: Add some more debug output

 folks/avatar-cache.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
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);



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