Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pythongosssss committed Oct 20, 2023
1 parent ecd7b45 commit fa65943
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests-ui/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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})`);
Expand Down

0 comments on commit fa65943

Please sign in to comment.