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); logger.log("starting aria2 at:", binaryPath);
return spawn( const cp = spawn(binaryPath, [
binaryPath,
[
"--enable-rpc", "--enable-rpc",
"--rpc-listen-all", "--rpc-listen-all",
"--file-allocation=none", "--file-allocation=none",
"--allow-overwrite=true", "--allow-overwrite=true",
], ]);
{ stdio: "inherit", windowsHide: true }
); cp.stdout?.on("data", async (data) => {
const msg = Buffer.from(data).toString("utf-8");
logger.info(msg);
});
return cp;
}; };