From ae1f67d31f425cdaeb02478b2b637473b811e86e Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Sun, 16 Nov 2014 21:44:32 +0300 Subject: [PATCH] reformat config file and http address messages --- lib/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cli.js b/lib/cli.js index 3bc6efedc..0c058de79 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -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') {