fix(log): log the bound port and host (#117)

This commit is contained in:
Jacob Heun 2019-10-02 16:49:13 +02:00 committed by GitHub
parent 7c977d3cb1
commit 7702646cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ module.exports = ({ handler, upgrader }, options) => {
const { host, port } = listeningAddr.toOptions() const { host, port } = listeningAddr.toOptions()
server.listen(port, host, err => { server.listen(port, host, err => {
if (err) return reject(err) if (err) return reject(err)
log('Listening on %s %s', port, host) log('Listening on %s', server.address())
resolve() resolve()
}) })
}) })