From 6006760b672aeccc1365e249a9209358d0f59630 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Mon, 12 Jan 2026 15:39:26 +0100 Subject: [PATCH] Only inherit io when loglevel verbose --- .../safe-chain/src/registryProxy/createRamaProxy.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/safe-chain/src/registryProxy/createRamaProxy.js b/packages/safe-chain/src/registryProxy/createRamaProxy.js index 90742ad..d065357 100644 --- a/packages/safe-chain/src/registryProxy/createRamaProxy.js +++ b/packages/safe-chain/src/registryProxy/createRamaProxy.js @@ -5,6 +5,7 @@ import { tmpdir } from "node:os"; import { dirname, join } from "node:path"; import { promisify } from "node:util"; import { ui } from "../environment/userInteraction.js"; +import { getLoggingLevel, LOGGING_VERBOSE } from "../config/settings.js"; const readFilePromise = promisify(readFile); const writeFilePromise = promisify(writeFile); @@ -72,9 +73,13 @@ export function createRamaProxy(ramaPath) { * @returns {Promise} */ async function startRama(ramaPath, dataFolder) { - let process = spawn(ramaPath, ["--secrets", "memory", "--data", dataFolder], { - stdio: "inherit", - }); + const args = ["--secrets", "memory", "--data", dataFolder]; + const process = + getLoggingLevel() === LOGGING_VERBOSE + ? spawn(ramaPath, args, { + stdio: "inherit", + }) + : spawn(ramaPath, args); // wait some time to allow the proxy process to start await new Promise((resolve) => setTimeout(resolve, 5000));