1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

chore: add config location and loglevel to startup log (#4679)

This commit is contained in:
Marc Bernard 2024-06-13 21:34:41 +02:00 committed by GitHub
parent de6ff5cb0d
commit 199aea375a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

@ -0,0 +1,5 @@
---
'@verdaccio/cli': patch
---
chore: add config location and loglevel to startup log

@ -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;