[sound-juicer] Opt into structured logging
- From: Phillip Wood <pwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Opt into structured logging
- Date: Tue, 6 Sep 2016 17:15:43 +0000 (UTC)
commit e099f7fc61b716ca95c13d1543c9135e6fc3d371
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Sun Sep 4 19:06:10 2016 +0100
Opt into structured logging
On systems using systemd-journald this adds location data fields to the
logged messages which can be viewed with
journalctl -overbose /usr/bin/sound-juicer
if sound-juicer is run with
env G_MESSAGES_DEBUG=sj-metadata sound-juicer
in gnome-shell’s launcher.
This raises the required GLib version to 2.49.5
Makefile.am | 1 +
configure.ac | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5077490..14500e3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,6 +18,7 @@ sound_juicer_CPPFLAGS = \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DPIXMAPDIR=\""$(datadir)/pixmaps"\" \
-DPKGDATADIR=\""$(datadir)/sound-juicer"\" \
+ -DG_LOG_USE_STRUCTURED=1 \
$(DISABLE_DEPRECATED) \
$(AM_CPPFLAGS)
diff --git a/configure.ac b/configure.ac
index cdfc481..3aec957 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,7 +46,7 @@ YELP_HELP_INIT
APPSTREAM_XML
# Find GLib and GObject
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.38 gthread-2.0 gobject-2.0 gio-2.0)
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.49.5 gthread-2.0 gobject-2.0 gio-2.0)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]