Skip to content

Commit

Permalink
chore: add config location and loglevel to startup log (#4679)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools committed Jun 13, 2024
1 parent de6ff5c commit 199aea3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-rivers-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@verdaccio/cli': patch
---

chore: add config location and loglevel to startup log
2 changes: 2 additions & 0 deletions packages/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 199aea3

Please sign in to comment.