From 1aed73c16d34f4ffb1cda369a47e1c682d90d901 Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Thu, 28 Mar 2024 02:04:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20CLI=20defau?= =?UTF-8?q?lt=20to=20`error`=20level=20logging=20-=20down=20from=20`fatal`?= =?UTF-8?q?=20(and=20small=20reminder)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/backend/node/src/cli/index.ts | 2 +- tdrive/backend/node/src/cli/lib/run-with-platform.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tdrive/backend/node/src/cli/index.ts b/tdrive/backend/node/src/cli/index.ts index 78003a52..f96049a3 100644 --- a/tdrive/backend/node/src/cli/index.ts +++ b/tdrive/backend/node/src/cli/index.ts @@ -10,7 +10,7 @@ yargs .usage("Usage: $0 [options]") .middleware([ argv => { - logger.level = argv.verbose ? "debug" : "fatal"; + logger.level = argv.verbose ? "debug" : "error"; if (!argv.quietConfigSummary) { console.error("Platform configuration:"); printConfigSummary().forEach(x => console.error(`\t${x}`)); diff --git a/tdrive/backend/node/src/cli/lib/run-with-platform.ts b/tdrive/backend/node/src/cli/lib/run-with-platform.ts index 8b02bb37..b26e6b43 100644 --- a/tdrive/backend/node/src/cli/lib/run-with-platform.ts +++ b/tdrive/backend/node/src/cli/lib/run-with-platform.ts @@ -6,6 +6,7 @@ import gr from "../../services/global-resolver"; import type { TdrivePlatform } from "../../core/platform/platform"; //TODO: When this gets used for all commands; update verboseDuringRun from search/index-all and move to root index +// And consider moving print-config-summary call here. /** * Start the platform and its services, run the command (passed as