Skip to content

Commit

Permalink
Improve logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Nov 29, 2024
1 parent c0f83bc commit 19885b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ async function installCustomNodes(
];
const { exitCode } = await virtualEnvironment.runPythonCommandAsync(cmd, {
onStdout: (data) => {
console.log(data.toString());
log.info(data.toString());
},
onStderr: (data) => {
console.error(data.toString());
log.error(data.toString());
},
});
if (exitCode !== 0) {
console.error(`Failed to install custom nodes: ${exitCode}`);
log.error(`Failed to install custom nodes: ${exitCode}`);
}
log.info(`Successfully installed custom node: ${node}`);
}
Expand Down

0 comments on commit 19885b7

Please sign in to comment.