From 6ac3872dfc336c54fcd0f18bdf7719ed051e312e Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 6 Nov 2023 14:49:16 +0100 Subject: [PATCH] lib: Add debug logging for cockpit.spawn() arguments Without this, `window.debugging = "spawn"` is very disappointing. Show what processes get launched, so that logging their outputs/exit codes actually makes sense. --- pkg/lib/cockpit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/lib/cockpit.js b/pkg/lib/cockpit.js index f66a89837156..34873a73b040 100644 --- a/pkg/lib/cockpit.js +++ b/pkg/lib/cockpit.js @@ -2741,6 +2741,8 @@ function factory() { if (options !== undefined) Object.assign(args, options); + spawn_debug("process spawn:", JSON.stringify(args.spawn)); + const name = args.spawn[0] || "process"; const channel = cockpit.channel(args);