[tracker] libtracker-miner: Improve logs



commit 1db1243f8e6daec9bd364336da68691f7e03d7c2
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Thu Aug 5 16:35:44 2010 +0200

    libtracker-miner: Improve logs

 src/libtracker-miner/tracker-miner-fs.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index a14ec4a..1ad16ff 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1555,6 +1555,21 @@ item_add_or_update (TrackerMinerFS *fs,
 		}
 
 		parent_urn = fs->private->current_iri_cache_parent_urn;
+
+		/* Check if we are trying to update/create a file where its parent still
+		 * doesn't exist */
+		if (parent && !parent_urn) {
+			gchar *uri;
+			gchar *parent_uri;
+
+			uri = g_file_get_uri (file);
+			parent_uri = g_file_get_uri (parent);
+			g_debug ("Adding to process item '%s' where parent '%s' still "
+			         "doesn't exist in store...", uri, parent_uri);
+			g_free (uri);
+			g_free (parent_uri);
+		}
+
 		g_object_unref (parent);
 	}
 



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