From 7702646cfa2855477719d9bb6094e3932015c4fa Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Wed, 2 Oct 2019 16:49:13 +0200 Subject: [PATCH] fix(log): log the bound port and host (#117) --- src/listener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listener.js b/src/listener.js index ac675f8..975eb93 100644 --- a/src/listener.js +++ b/src/listener.js @@ -59,7 +59,7 @@ module.exports = ({ handler, upgrader }, options) => { const { host, port } = listeningAddr.toOptions() server.listen(port, host, err => { if (err) return reject(err) - log('Listening on %s %s', port, host) + log('Listening on %s', server.address()) resolve() }) })