From 199aea375acf297bdd6435056adcf363b41d4d77 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Thu, 13 Jun 2024 21:34:41 +0200 Subject: [PATCH] chore: add config location and loglevel to startup log (#4679) --- .changeset/chilly-rivers-chew.md | 5 +++++ packages/cli/src/commands/init.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/chilly-rivers-chew.md diff --git a/.changeset/chilly-rivers-chew.md b/.changeset/chilly-rivers-chew.md new file mode 100644 index 000000000000..d3b8b598a51f --- /dev/null +++ b/.changeset/chilly-rivers-chew.md @@ -0,0 +1,5 @@ +--- +'@verdaccio/cli': patch +--- + +chore: add config location and loglevel to startup log diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts index 110e29b3548b..765cbcb260ac 100644 --- a/packages/cli/src/commands/init.ts +++ b/packages/cli/src/commands/init.ts @@ -58,6 +58,8 @@ export class InitCommand extends Command { const configPathLocation = findConfigFile(this.config as string); const configParsed = parseConfigFile(configPathLocation); this.initLogger(configParsed); + logger.info({ file: configPathLocation }, 'using config file: @{file}'); + logger.info('log level: %s', configParsed.log?.level || 'default'); const { web } = configParsed; process.title = web?.title || DEFAULT_PROCESS_NAME;