[tracker/rss-enclosures] tracker-miner-fs: Improve logs



commit e544e21a57ad2ba812b563e7097eb68ab3b92b86
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Jul 15 09:43:53 2010 +0200

    tracker-miner-fs: Improve logs

 src/miners/fs/tracker-miner-files.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 36e01f3..3eb611f 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -671,12 +671,13 @@ set_up_mount_point (TrackerMinerFiles *miner,
 {
 	GString *queries;
 
-	g_debug ("Mount point state being set in DB for URN '%s'",
-	         removable_device_urn);
-
 	queries = g_string_new (NULL);
 
 	if (mounted) {
+		g_debug ("Mount point state (MOUNTED) being set in DB for URN '%s' (mount_point: %s)",
+		         removable_device_urn,
+		         mount_point ? mount_point : "unknown");
+
 		if (mount_point) {
 			GFile *file;
 			gchar *uri;
@@ -722,6 +723,9 @@ set_up_mount_point (TrackerMinerFiles *miner,
 	} else {
 		gchar *now;
 
+		g_debug ("Mount point state (UNMOUNTED) being set in DB for URN '%s'",
+		         removable_device_urn);
+
 		now = tracker_date_to_string (time (NULL));
 
 		g_string_append_printf (queries,



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