more logs

This commit is contained in:
Zamitto 2024-05-30 21:35:38 -03:00
parent a354d76652
commit 2138aa9711

View file

@ -10,14 +10,17 @@ export const startAria2 = () => {
logger.log("starting aria2 at:", binaryPath);
return spawn(
binaryPath,
[
"--enable-rpc",
"--rpc-listen-all",
"--file-allocation=none",
"--allow-overwrite=true",
],
{ stdio: "inherit", windowsHide: true }
);
const cp = spawn(binaryPath, [
"--enable-rpc",
"--rpc-listen-all",
"--file-allocation=none",
"--allow-overwrite=true",
]);
cp.stdout?.on("data", async (data) => {
const msg = Buffer.from(data).toString("utf-8");
logger.info(msg);
});
return cp;
};