[geocode-glib] lib: Add debug for where cache files are saved/loaded



commit 894e9434a6b595a9d40e9d6867fa95855c0b6959
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Nov 26 10:28:30 2012 +0100

    lib: Add debug for where cache files are saved/loaded
    
    Makes saving a particular query's results much easier.

 geocode-glib/geocode-glib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-glib.c b/geocode-glib/geocode-glib.c
index 83c828a..05c09aa 100644
--- a/geocode-glib/geocode-glib.c
+++ b/geocode-glib/geocode-glib.c
@@ -88,6 +88,7 @@ _geocode_glib_cache_save (GFile      *query,
 	gboolean ret;
 
 	path = _geocode_glib_cache_path_for_query (query);
+	g_debug ("Saving cache file '%s'", path);
 	ret = g_file_set_contents (path, contents, -1, NULL);
 
 	g_free (path);
@@ -102,6 +103,7 @@ _geocode_glib_cache_load (GFile  *query,
 	gboolean ret;
 
 	path = _geocode_glib_cache_path_for_query (query);
+	g_debug ("Loading cache file '%s'", path);
 	ret = g_file_get_contents (path, contents, NULL, NULL);
 
 	g_free (path);



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