[Update] Add stdout handling status code 348 and show log to console. It's for showing log from backend properly.

This commit is contained in:
Sakamoto Shiina
2024-08-09 13:19:34 +09:00
parent 3ed3d5eb40
commit 8be398e0c0
2 changed files with 15 additions and 12 deletions

View File

@@ -13,10 +13,8 @@ export const useStartPython = () => {
parsed_data = JSON.parse(line);
receiveRoutes(parsed_data);
} catch (error) {
console.log(error);
parsed_data = line;
console.log(error, line);
}
console.log("from python:", parsed_data);
});
command.stderr.on("data", line => console.error("stderr:", line));
const backend_subprocess = await command.spawn();