From fa65943b56be6928a6042941b4410180fdb303bd Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Fri, 20 Oct 2023 19:12:33 +0100 Subject: [PATCH] logging --- tests-ui/setup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests-ui/setup.js b/tests-ui/setup.js index 898add828..166a1feb3 100644 --- a/tests-ui/setup.js +++ b/tests-ui/setup.js @@ -23,8 +23,10 @@ async function setup() { data = JSON.stringify(objectInfo, undefined, "\t"); + const outPath = resolve("./data/object_info.json") + console.log(`Writing ${Object.keys(objectInfo).length} nodes to ${outPath}`); writeFile( - "data/object_info.json", + outPath, data, { encoding: "utf8", @@ -60,6 +62,7 @@ async function setup() { args = ["main.py"]; cwd = ".."; } + console.log(python, ...args); child = spawn(python, [...args, "--cpu"], { cwd }); child.on("error", (err) => { console.log(`Server error (${err})`);