mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Clean up rama proxy process start
This commit is contained in:
parent
b03c1f6817
commit
261aca9701
1 changed files with 2 additions and 6 deletions
|
|
@ -72,12 +72,8 @@ export function createRamaProxy(ramaPath) {
|
||||||
async function startRama(ramaPath, dataFolder) {
|
async function startRama(ramaPath, dataFolder) {
|
||||||
const startTime = Date.now();
|
const startTime = Date.now();
|
||||||
const args = ["--secrets", "memory", "--data", dataFolder];
|
const args = ["--secrets", "memory", "--data", dataFolder];
|
||||||
const process =
|
const stdio = LOGGING_VERBOSE ? "inherit" : "pipe";
|
||||||
getLoggingLevel() === LOGGING_VERBOSE
|
const process = spawn(ramaPath, args, { stdio: stdio });
|
||||||
? spawn(ramaPath, args, {
|
|
||||||
stdio: "inherit",
|
|
||||||
})
|
|
||||||
: spawn(ramaPath, args);
|
|
||||||
|
|
||||||
// wait for the proxy process to start (poll for proxy.addr.txt file)
|
// wait for the proxy process to start (poll for proxy.addr.txt file)
|
||||||
const proxyAddrPath = join(dataFolder, "proxy.addr.txt");
|
const proxyAddrPath = join(dataFolder, "proxy.addr.txt");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue