[tracker-miners/sam/functional-tests-shared: 2/3] Use g_message() instead of g_print() in daemons
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/functional-tests-shared: 2/3] Use g_message() instead of g_print() in daemons
- Date: Wed, 7 Aug 2019 18:55:21 +0000 (UTC)
commit da78292a067a8db402b2ff0aa2558de7ccd8654c
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Aug 7 17:11:55 2019 +0200
Use g_message() instead of g_print() in daemons
Daemons shouldn't be noisy by default. You can still set
G_MESSAGES_DEBUG=Tracker and/or TRACKER_VERBOSITY=1
to see these messages.
This reduces the noise in the logs generated by the functional-tests.
src/miners/fs/tracker-main.c | 7 +++----
src/tracker-extract/tracker-main.c | 7 +++----
2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 0662c39e0..cd3cc70ee 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -250,10 +250,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;
}
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index f6db1e0f2..4430ddabf 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -178,10 +178,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]