summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël Bonithon <gael@xfce.org>2021-12-29 17:06:54 +0100
committerGaël Bonithon <gael@xfce.org>2021-12-29 18:51:59 +0100
commitdf92863d7d4b8d8e22a40af2495483410e47f45b (patch)
tree1a5b3d44c531970953cb49987e6b433a6b656f88
parent5affdb5ccdba711ada11f4cde7d7acc840b5a4be (diff)
downloadtumbler-df92863d7d4b8d8e22a40af2495483410e47f45b.tar.gz
Debug: Write on stderr if possible
-rw-r--r--tumblerd/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tumblerd/main.c b/tumblerd/main.c
index 9289a97..41b0309 100644
--- a/tumblerd/main.c
+++ b/tumblerd/main.c
@@ -112,6 +112,14 @@ main (int argc,
g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL);
#endif
+#if GLIB_CHECK_VERSION (2, 68, 0)
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ /* to avoid overlap between stderr and stdout, e.g. when third party APIs write to
+ * stderr, or if debugging macros writing to stderr are used in addition to g_debug() */
+ g_log_writer_default_set_use_stderr (TRUE);
+ G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
+
/* set the application name. Translators: Don't translate "Tumbler". */
g_set_application_name ("Tumbler Thumbnailing Service");