mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
more logs
This commit is contained in:
parent
a354d76652
commit
2138aa9711
1 changed files with 13 additions and 10 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue