[tracker-miners/sam/log-domain] Set log domain to Tracker



commit 2dcd2a567e06b35e7a044aa00ba0f42699f38f31
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Aug 6 20:25:05 2019 +0200

    Set log domain to Tracker
    
    This fixes a regression introduced by the Meson port, where this package
    didn't declare a GLib log domain. Fixing this means that you can once
    again use the environment variable `G_MESSAGES_DEBUG=Tracker` combined
    with `TRACKER_VERBOSITY` to show debug messages only from Tracker.
    Without this fix, `G_MESSAGES_DEBUG=all` is needed to enable the
    messages to be printed, but this may enable output from other packages
    too.

 meson.build | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index 0beafc678..a7d38e3e9 100644
--- a/meson.build
+++ b/meson.build
@@ -118,7 +118,9 @@ add_project_arguments('-Wformat', '-Wformat-security', language: 'c')
 # There are various gchar vs. unsigned char warnings that occur in extract
 # modules, it's not worth adding casts everywhere so we disable the warning.
 add_project_arguments('-Wno-pointer-sign', language: 'c')
+
 add_project_arguments('-DTRACKER_COMPILATION', language: 'c')
+add_project_arguments('-DG_LOG_DOMAIN="Tracker"', language: 'c')
 
 ##################################################################
 # Check for libtracker-common: battery/mains power detection


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