diff --git a/meson.build b/meson.build index 6c51c145..b2528325 100644 --- a/meson.build +++ b/meson.build @@ -87,7 +87,7 @@ if selinux_dep.found() endif endif -if get_option('debug') +if get_option('debug_logging') cdata.set('BWRAP_DEBUG', 1) endif diff --git a/utils.c b/utils.c index ac5c446d..5865cdb5 100644 --- a/utils.c +++ b/utils.c @@ -52,8 +52,10 @@ bwrap_logv (int severity, va_list args, const char *detail) { +#ifdef BWRAP_DEBUG if (severity == LOG_DEBUG && !bwrap_is_debugging) return; +#endif if (bwrap_level_prefix) fprintf (stderr, "<%d>", severity);