[tracker] tracker-miner-rss: Use g_critical() instead of g_printerr() using the log pipeline



commit 8dd089b986ea8f52866b7d229beeb80adaa64ebd
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Mar 8 16:10:09 2013 +0000

    tracker-miner-rss: Use g_critical() instead of g_printerr() using the log pipeline

 src/miners/rss/tracker-main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/rss/tracker-main.c b/src/miners/rss/tracker-main.c
index 1cd0406..76acdf5 100644
--- a/src/miners/rss/tracker-main.c
+++ b/src/miners/rss/tracker-main.c
@@ -97,6 +97,7 @@ main (int argc, char **argv)
 
        g_option_context_free (context);
 
+       /* Command line stuff doesn't use logging, so we're using g_print*() */
        if (add_feed && title) {
                TrackerSparqlConnection *connection;
                const gchar *query;
@@ -158,7 +159,7 @@ main (int argc, char **argv)
 
        miner = tracker_miner_rss_new (&error);
        if (!miner) {
-               g_printerr ("Cannot create new RSS miner: '%s', exiting...\n",
+               g_critical ("Could not create new RSS miner: '%s', exiting...\n",
                            error ? error->message : "unknown error");
                return EXIT_FAILURE;
        }


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