--- a/libpurple/debug.c Thu Oct 07 22:24:25 2021 -0500
+++ b/libpurple/debug.c Thu Oct 07 22:28:08 2021 -0500
@@ -66,10 +66,6 @@
- if(!purple_debug_ui_is_enabled(ui, level, category)) {
arg_s = g_strdup_vprintf(format, args);
g_strchomp(arg_s); /* strip trailing linefeeds */
@@ -113,7 +109,9 @@
- purple_debug_ui_print(ui, level, category, arg_s);
+ if(purple_debug_ui_is_enabled(ui, level, category)) { + purple_debug_ui_print(ui, level, category, arg_s); --- a/meson.build Thu Oct 07 22:24:25 2021 -0500
+++ b/meson.build Thu Oct 07 22:28:08 2021 -0500
@@ -654,7 +654,11 @@
ENABLE_DOC = get_option('doc')
-enable_debug = get_option('console-logging')
+if ['debug', 'debugoptimize'].contains(get_option('buildtype')) + enable_debug = get_option('console-logging') conf.set('DEBUG', enable_debug)
# So that config.h may be found.