[recipes] Use the new GLib logging



commit 4e24f0434464a90fc57f957ccdc0f01bd6bace5f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 4 22:57:36 2017 -0500

    Use the new GLib logging
    
    This will arrange for our logs to end up in the systemd journal
    when appropriate.

 meson.build     |    1 +
 src/Makefile.am |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index 271b3ac..cb55f05 100644
--- a/meson.build
+++ b/meson.build
@@ -81,6 +81,7 @@ pkgdatadir = join_paths([ get_option('prefix'),
                           get_option('datadir'),
                           'gnome-recipes' ])
 bindir = join_paths([ get_option('prefix'), 'bin' ])
+conf.set('G_LOG_USE_STRUCTURED', true)
 conf.set_quoted('G_LOG_DOMAIN', 'org.gnome.Recipes')
 conf.set_quoted('PACKAGE_NAME', 'gnome-recipes')
 conf.set_quoted('PACKAGE_VERSION', meson.project_version())
diff --git a/src/Makefile.am b/src/Makefile.am
index e4af66f..44d90e2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,6 +7,7 @@ gnome_recipes_CFLAGS = \
        $(WARN_CFLAGS)                  \
        -Wno-sign-compare               \
        $(RECIPES_CFLAGS)               \
+       -DG_LOG_USE_STRUCTURED=1                \
        -DG_LOG_DOMAIN=\"org.gnome.Recipes\"    \
        -DPACKAGE_NAME=\"$(PACKAGE_NAME)\"      \
        -DPKGDATADIR=\"$(pkgdatadir)\"  \


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