[tracker] TrackerMinerFS: Critical messages are fine for most impl errors.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] TrackerMinerFS: Critical messages are fine for most impl errors.
- Date: Mon, 23 Nov 2009 13:26:09 +0000 (UTC)
commit f87fee716385ffd20a29326800775e99f5f47f7a
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Nov 18 15:15:42 2009 +0100
TrackerMinerFS: Critical messages are fine for most impl errors.
Miner implementations weren't able to extract metadata, probably for a good
reason, so issue critical warnings for all of them, but the "file not found"
case.
src/libtracker-miner/tracker-miner-fs.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index d59a6cb..acf6d6e 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -836,7 +836,11 @@ item_add_or_update_cb (TrackerMinerFS *fs,
uri = g_file_get_uri (data->file);
if (error) {
- g_message ("Could not process '%s': %s", uri, error->message);
+ if (error->code == G_IO_ERROR_NOT_FOUND) {
+ g_message ("Could not process '%s': %s", uri, error->message);
+ } else {
+ g_critical ("Could not process '%s': %s", uri, error->message);
+ }
fs->private->processing_pool =
g_list_remove (fs->private->processing_pool, data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]