0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

reformat config file and http address messages

This commit is contained in:
Alex Kocharin 2014-11-16 21:44:32 +03:00
parent a425c5e2ff
commit ae1f67d31f

View file

@ -49,7 +49,7 @@ try {
config_path = require('./config-path')()
}
config = YAML.safeLoad(fs.readFileSync(config_path, 'utf8'))
logger.logger.warn({ file: config_path }, 'Using config file: @{file}')
logger.logger.warn({ file: config_path }, 'config file - @{file}')
} catch (err) {
logger.logger.fatal({ file: config_path, err: err }, 'cannot open config file @{file}: @{!err.message}')
process.exit(1)
@ -85,7 +85,7 @@ function afterConfigLoad() {
process.exit(2)
})
logger.logger.warn({ addr: 'http://'+hostport[0]+':'+hostport[1]+'/', version: 'Sinopia/'+pkg.version }, 'Server is listening on @{addr}')
logger.logger.warn({ addr: 'http://'+hostport[0]+':'+hostport[1]+'/', version: 'Sinopia/'+pkg.version }, 'http address - @{addr}')
// undocumented stuff for tests
if (typeof(process.send) === 'function') {