[tracker] libtracker-miner,storage: Improve logging



commit 7a101d8870aede2327a5a2dd2ecd1d0c9e991bc1
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Feb 17 12:23:36 2011 +0100

    libtracker-miner,storage: Improve logging

 src/libtracker-miner/tracker-storage.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-storage.c b/src/libtracker-miner/tracker-storage.c
index 3fc5c4c..f97223e 100644
--- a/src/libtracker-miner/tracker-storage.c
+++ b/src/libtracker-miner/tracker-storage.c
@@ -603,15 +603,17 @@ mount_add (TrackerStorage *storage,
 			if (drive) {
 				/* We can't mount/unmount system volumes, so tag
 				 * them as non removable. */
-				if (g_volume_can_mount (volume)) {
-					is_removable = TRUE;
-				} else {
-					is_removable = FALSE;
-				}
+				is_removable = g_volume_can_mount (volume);
+				g_debug ("  Found mount with volume and drive which %s be mounted: "
+				         "Assuming it's %s removable, if wrong report a bug!",
+				         is_removable ? "can" : "cannot",
+				         is_removable ? "" : "not");
 				g_object_unref (drive);
 			} else {
 				/* Note: not sure when this can happen... */
-				g_debug ("  Assuming GDrive has removable media, if wrong report a bug!");
+				g_debug ("  Mount with volume but no drive, "
+				         "assuming not a removable device, "
+				         "if wrong report a bug!");
 				is_removable = FALSE;
 			}
 		}



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