From 8c3c0484ed8f770d73e8d8387ab151d1f56d81ed Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 23 May 2024 15:13:15 +0000 Subject: [PATCH] fix(@deltachat/stdio-rpc-server): do not set RUST_LOG to "info" by default `info` enables info level logging for all libraries, e.g. iroh starts printing very verbose logs to stderr this way. --- deltachat-rpc-server/npm-package/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-rpc-server/npm-package/index.js b/deltachat-rpc-server/npm-package/index.js index a6e4dfdde..3098bedd0 100644 --- a/deltachat-rpc-server/npm-package/index.js +++ b/deltachat-rpc-server/npm-package/index.js @@ -70,7 +70,7 @@ export async function startDeltaChat(directory, options = {}) { const pathToServerBinary = await getRPCServerPath(options); const server = spawn(pathToServerBinary, { env: { - RUST_LOG: process.env.RUST_LOG || "info", + RUST_LOG: process.env.RUST_LOG, DC_ACCOUNTS_PATH: directory, }, stdio: ["pipe", "pipe", options.muteStdErr ? "ignore" : "inherit"],