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:
parent
de6ff5cb0d
commit
199aea375a
5
.changeset/chilly-rivers-chew.md
Normal file
5
.changeset/chilly-rivers-chew.md
Normal file
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user