[tracker/writeback-refactor-rebase] libtracker-miner, tracker-miner-fs: Improved debugging



commit 499c117fe3746f50d2ffc2d83b4c1a5a835e090a
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Jul 26 16:40:50 2011 +0100

    libtracker-miner, tracker-miner-fs: Improved debugging

 src/libtracker-miner/tracker-miner-fs.c      |    2 +-
 src/miners/fs/tracker-writeback-dispatcher.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 1a2dadb..71bbefd 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -4862,7 +4862,7 @@ tracker_miner_fs_writeback_file (TrackerMinerFS *fs,
 
 	path = g_file_get_path (file);
 
-	g_debug ("%s (WRITEBACK) (requested by application)", path);
+	g_debug ("Performing write-back:'%s' (requested by application)", path);
 
 	trace_eq_push_tail ("WRITEBACK", file, "Requested by application");
 
diff --git a/src/miners/fs/tracker-writeback-dispatcher.c b/src/miners/fs/tracker-writeback-dispatcher.c
index f0b1768..7f7400d 100644
--- a/src/miners/fs/tracker-writeback-dispatcher.c
+++ b/src/miners/fs/tracker-writeback-dispatcher.c
@@ -252,7 +252,7 @@ self_weak_notify (gpointer data, GObject *where_the_object_was)
 	WritebackFileData *udata = data;
 
 	/* Shut down while retrying writeback */
-	g_debug ("Shutdown while retrying WRITEBACK after unmount, not retrying anymore");
+	g_debug ("Shutdown occurred while retrying write-back (after unmount), not retrying anymore");
 
 	if (udata->retry_timeout != 0) {
 		g_source_remove (udata->retry_timeout);
@@ -292,7 +292,7 @@ writeback_file_finished  (GObject      *source_object,
 		/* This happens in case of exit() of the tracker-writeback binary, which
 		 * happens on unmount of the FS event, for example */
 
-		g_debug ("Retry WRITEBACK after unmount");
+		g_debug ("Retrying write-back after unmount (timeout in 5 seconds)");
 		tracker_miner_fs_writeback_notify (data->fs, data->file, NULL);
 
 		data->retry_timeout = g_timeout_add_seconds (5, retry_idle, data);
@@ -347,7 +347,7 @@ writeback_dispatcher_writeback_file (TrackerMinerFS *fs,
 	priv = TRACKER_WRITEBACK_DISPATCHER_GET_PRIVATE (self);
 
 	uri = g_file_get_uri (file);
-	g_debug ("Writeback: %s", uri);
+	g_debug ("Performing write-back for '%s'", uri);
 
 	g_variant_builder_init (&builder, G_VARIANT_TYPE ("(sasaas)"));
 



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