mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 21:42:37 +08:00
logging
This commit is contained in:
parent
ecd7b45d32
commit
fa65943b56
@ -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})`);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user