Skip to content

Commit 9498195

Browse files
committed
Merge pull request http-party#179 from impleri/master
Complete renaming of log() to logger.info()
2 parents 90007e2 + 1c2d9ea commit 9498195

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/http-server

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ function listen(port) {
115115
+ ' on: '.yellow
116116
+ (protocol + '//' + host + ':' + port).cyan);
117117

118-
log('\nAvailable on:'.yellow);
118+
logger.info('\nAvailable on:'.yellow);
119119

120120
Object.keys(ifaces).forEach(function (dev) {
121121
ifaces[dev].forEach(function (details) {
122122
if (details.family === 'IPv4') {
123-
log((' http://' + details.address + ':' + port.toString()).green);
123+
logger.info((' http://' + details.address + ':' + port.toString()).green);
124124
}
125125
});
126126
});
@@ -154,6 +154,6 @@ process.on('SIGINT', function () {
154154
});
155155

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

0 commit comments

Comments
 (0)