From 8b9f07ceec49f88e35df33aba931eca71781b69e Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Mon, 10 Feb 2020 15:38:24 +0000
Subject: [PATCH] wrap: Debug-log the bwrap executable if --test succeeds

It's a little confusing if we run p-v-wrap --test --verbose, which logs:

    pressure-vessel-wrap: Original argv:
    ...
    pressure-vessel-wrap: Checking for bwrap...

and then exits. If we add one last line

    pressure-vessel-wrap: OK (/usr/bin/bwrap)

then the result is clearer.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 src/wrap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/wrap.c b/src/wrap.c
index 49d183c2a..3bfed3672 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -2274,6 +2274,7 @@ main (int argc,
         }
       else
         {
+          g_debug ("OK (%s)", bwrap_executable);
           ret = 0;
           goto out;
         }
-- 
GitLab