summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2020-04-20 01:24:55 +0200
committerSam Thursfield <sam@afuera.me.uk>2020-04-20 19:29:38 +0200
commita3682ae5fc76f6c72a6704fd0321a4b5b079817e (patch)
tree7140bcabfae8a1ac5644f262b64a580ee7708644
parent5aac1111209caf33fa82acc0c206b3a2165cb76e (diff)
downloadtracker-a3682ae5fc76f6c72a6704fd0321a4b5b079817e.tar.gz
Use structured logging
There now isn't a way to control the log verbosity of the Tracker daemons, so all g_debug() output will go to the syslog or journal. We need to ensure the debug output is useful, but by switching to structured logging we also ensure that users will be able to filter out the debug messages easily. See https://blog.gtk.org/2017/05/04/logging-and-more/ for more details about structured logging.
-rw-r--r--meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 99a1077ef..1e72fe963 100644
--- a/meson.build
+++ b/meson.build
@@ -67,9 +67,11 @@ add_project_arguments('-Wno-pointer-sign', language: 'c')
add_project_arguments('-DTRACKER_COMPILATION',
'-DG_LOG_DOMAIN="Tracker"',
+ '-DG_LOG_STRUCTURED=1',
language: 'c')
add_project_arguments(['-D', 'TRACKER_COMPILATION'],
['-D', 'G_LOG_DOMAIN="Tracker"'],
+ ['-D', 'G_LOG_STRUCTURED=1'],
language: 'vala')
debug_cflags = []