Skip to content
Snippets Groups Projects
Commit 8fdca5b6 authored by Simon McVittie's avatar Simon McVittie
Browse files

pv-wrap: Run bwrap with --level-prefix if available


This will let us highlight warnings and fatal errors from bwrap as such.
In particular, if bwrap fails with a fatal error, putting the <3>
prefix on it will ensure that it's highlighted as an error.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 0e935b15
Branches
Tags
1 merge request!729Optionally emit priority level markers on bubblewrap messages
Pipeline #106516 passed
...@@ -492,6 +492,10 @@ main (int argc, ...@@ -492,6 +492,10 @@ main (int argc,
g_assert (exports != NULL); g_assert (exports != NULL);
g_assert (bwrap_filesystem_arguments != NULL); g_assert (bwrap_filesystem_arguments != NULL);
if ((_srt_util_get_log_flags () & SRT_LOG_FLAGS_LEVEL)
&& (bwrap_flags & SRT_BWRAP_FLAGS_HAS_LEVEL_PREFIX))
flatpak_bwrap_add_arg (bwrap, "--level-prefix");
/* When using an interpreter root, avoid /run/gfx and instead use a /* When using an interpreter root, avoid /run/gfx and instead use a
* directory in /var. As much as possible we want each top-level * directory in /var. As much as possible we want each top-level
* directory to be either in the rootfs or in the real host system, * directory to be either in the rootfs or in the real host system,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment