[tracker] libtracker-miner: Improve logging
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Improve logging
- Date: Mon, 13 Feb 2012 19:26:39 +0000 (UTC)
commit 64d6aa9dc6e3c4383b4dd457724d2e0a4946cc9a
Author: Martyn Russell <martyn lanedo com>
Date: Mon Feb 13 18:38:31 2012 +0000
libtracker-miner: Improve logging
Use tracker_info() for higher level tasks so logs are easier to read
src/libtracker-miner/tracker-file-notifier.c | 18 +++++++++---------
src/libtracker-miner/tracker-miner-fs.c | 2 +-
src/libtracker-miner/tracker-sparql-buffer.c | 6 +++---
3 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 5858c06..22d9ae1 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -284,7 +284,7 @@ file_notifier_traverse_tree (TrackerFileNotifier *notifier)
current_root,
G_FILE_TYPE_REGULAR);
- tracker_info ("Finished notifying files after %2.2f seconds",
+ tracker_info (" Notified files after %2.2f seconds",
g_timer_elapsed (priv->timer, NULL));
/* We've finished crawling/querying on the first element
@@ -374,12 +374,12 @@ crawler_directory_crawled_cb (TrackerCrawler *crawler,
directories_found, directories_ignored,
files_found, files_ignored);
- g_message (" Found %d directories, ignored %d directories",
- directories_found,
- directories_ignored);
- g_message (" Found %d files, ignored %d files",
- files_found,
- files_ignored);
+ tracker_info (" Found %d directories, ignored %d directories",
+ directories_found,
+ directories_ignored);
+ tracker_info (" Found %d files, ignored %d files",
+ files_found,
+ files_ignored);
}
static void
@@ -472,7 +472,7 @@ sparql_query_cb (GObject *object,
quark_property_queried,
GUINT_TO_POINTER (TRUE));
- tracker_info ("finished querying files after %2.2f seconds",
+ tracker_info (" Queried files after %2.2f seconds",
g_timer_elapsed (priv->timer, NULL));
/* If it's also been crawled, finish operation */
@@ -631,7 +631,7 @@ crawler_finished_cb (TrackerCrawler *crawler,
TrackerFileNotifier *notifier = user_data;
TrackerFileNotifierPrivate *priv = notifier->priv;
- tracker_info ("%s crawling files after %2.2f seconds",
+ tracker_info (" %s crawling files after %2.2f seconds",
was_interrupted ? "Stopped" : "Finished",
g_timer_elapsed (priv->timer, NULL));
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 83b6d56..789e2d8 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2686,7 +2686,7 @@ file_notifier_finished (TrackerFileNotifier *notifier,
TrackerMinerFS *fs = user_data;
if (!tracker_miner_fs_has_items_to_process (fs)) {
- g_message ("Finished content crawling");
+ tracker_info ("Finished all tasks");
process_stop (fs);
}
}
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index 441768a..33e8601 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -267,8 +267,8 @@ tracker_sparql_buffer_update_array_cb (GObject *object,
priv = TRACKER_SPARQL_BUFFER (update_data->buffer)->priv;
priv->n_updates--;
- g_message ("(Sparql buffer) Finished array-update with %u tasks",
- update_data->tasks->len);
+ g_debug ("(Sparql buffer) Finished array-update with %u tasks",
+ update_data->tasks->len);
sparql_array_errors = tracker_sparql_connection_update_array_finish (priv->connection,
result,
@@ -516,7 +516,7 @@ tracker_sparql_buffer_flush (TrackerSparqlBuffer *buffer,
return FALSE;
}
- g_message ("Flushing SPARQL buffer, reason: %s", reason);
+ g_debug ("Flushing SPARQL buffer, reason: %s", reason);
if (priv->flush_timeout_id != 0) {
g_source_remove (priv->flush_timeout_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]