Skip to content

Commit

Permalink
Merge pull request #179 from impleri/master
Browse files Browse the repository at this point in the history
Complete renaming of log() to logger.info()
  • Loading branch information
indexzero committed Sep 22, 2015
2 parents 90007e2 + 1c2d9ea commit 9498195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/http-server
Expand Up @@ -115,12 +115,12 @@ function listen(port) {
+ ' on: '.yellow
+ (protocol + '//' + host + ':' + port).cyan);

log('\nAvailable on:'.yellow);
logger.info('\nAvailable on:'.yellow);

Object.keys(ifaces).forEach(function (dev) {
ifaces[dev].forEach(function (details) {
if (details.family === 'IPv4') {
log((' http://' + details.address + ':' + port.toString()).green);
logger.info((' http://' + details.address + ':' + port.toString()).green);
}
});
});
Expand Down Expand Up @@ -154,6 +154,6 @@ process.on('SIGINT', function () {
});

process.on('SIGTERM', function () {
log('http-server stopped.'.red);
logger.info('http-server stopped.'.red);
process.exit();
});

0 comments on commit 9498195

Please sign in to comment.