From 7eeb25a436aa9d40b364e793af0053469ea795e3 Mon Sep 17 00:00:00 2001 From: TheThing Date: Tue, 31 Oct 2023 14:09:26 +0000 Subject: [PATCH] More debug logging --- lib/kill.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/kill.mjs b/lib/kill.mjs index 114c604..f02dc05 100644 --- a/lib/kill.mjs +++ b/lib/kill.mjs @@ -43,10 +43,14 @@ function buildTree(allPids, spawnGetChildren, parentPid) { ps.stdout.on('data', function(buf) { data += buf.toString('ascii') }) + ps.stderr.on('data', function(buf) { + data += buf.toString('ascii') + }) return new Promise(function(res) { ps.on('close', function(code) { // Check if we got error code (usually means empty results) + console.log(data) if (code !== 0) return res() res(Promise.all(