[tracker/miner-fs-refactor: 67/120] libtracker-miner: Improve logging of TrackerFileNotifier



commit 4cf8cd333ffcf01a88c632d537e1d2adee46303c
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Oct 3 18:20:06 2011 +0200

    libtracker-miner: Improve logging of TrackerFileNotifier

 src/libtracker-miner/tracker-file-notifier.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 0753f3b..35d6b7f 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -22,6 +22,7 @@
 #include <libtracker-common/tracker-log.h>
 #include <libtracker-sparql/tracker-sparql.h>
 
+#include "tracker-miner-common.h"
 #include "tracker-file-notifier.h"
 #include "tracker-file-system.h"
 #include "tracker-crawler.h"
@@ -515,6 +516,8 @@ crawl_directories_start (TrackerFileNotifier *notifier)
 		if (tracker_crawler_start (priv->crawler,
 					   directory,
 					   (flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0)) {
+			gchar *uri;
+
 			sparql_file_query_start (notifier, directory,
 			                         G_FILE_TYPE_DIRECTORY,
 			                         (flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0,
@@ -523,6 +526,10 @@ crawl_directories_start (TrackerFileNotifier *notifier)
 			g_timer_reset (priv->timer);
 			g_signal_emit (notifier, signals[DIRECTORY_STARTED], 0, directory);
 
+			uri = g_file_get_uri (directory);
+			tracker_info ("Started inspecting '%s'", uri);
+			g_free (uri);
+
 			return TRUE;
 		} else {
 			/* Emit both signals for consistency */



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