Commit 12f095cc authored by Sam Thursfield's avatar Sam Thursfield

Use g_message() instead of g_print() in daemons

All logs should go through the GLib logging system so they can be
properly enabled and disabled with the TRACKER_VERBOSITY variable.
parent 240268b9
......@@ -118,14 +118,12 @@ License which can be viewed at:
do_shutdown ();
if (strsignal (signo) != null) {
print ("\n");
print ("Received signal:%d->'%s'", signo, strsignal (signo));
message ("Received signal:%d->'%s'", signo, strsignal (signo));
}
break;
default:
if (strsignal (signo) != null) {
print ("\n");
print ("Received signal:%d->'%s'", signo, strsignal (signo));
message ("Received signal:%d->'%s'", signo, strsignal (signo));
}
break;
}
......
......@@ -228,10 +228,9 @@ signal_handler (gpointer user_data)
/* Fall through */
default:
if (g_strsignal (signo)) {
g_print ("\n");
g_print ("Received signal:%d->'%s'\n",
signo,
g_strsignal (signo));
g_message ("Received signal:%d->'%s'",
signo,
g_strsignal (signo));
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment