Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading