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