[tracker/sam/functional-tests-quiet: 10/14] Use g_message() instead of g_print() in daemons
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/functional-tests-quiet: 10/14] Use g_message() instead of g_print() in daemons
- Date: Sat, 14 Sep 2019 10:10:13 +0000 (UTC)
commit 12f095cc07d921c06a666aef05ab3f37b58804ad
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Aug 7 17:10:24 2019 +0200
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.
src/tracker-store/tracker-main.vala | 6 ++----
src/tracker/tracker-daemon.c | 7 +++----
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/src/tracker-store/tracker-main.vala b/src/tracker-store/tracker-main.vala
index 1248709b7..e1b0cc86b 100644
--- a/src/tracker-store/tracker-main.vala
+++ b/src/tracker-store/tracker-main.vala
@@ -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;
}
diff --git a/src/tracker/tracker-daemon.c b/src/tracker/tracker-daemon.c
index 2c25b2c07..c73658477 100644
--- a/src/tracker/tracker-daemon.c
+++ b/src/tracker/tracker-daemon.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]