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);
|
||||
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue