better debug log

This commit is contained in:
Feross Aboukhadijeh 2015-07-29 05:19:57 -07:00
parent 14d3b5fad6
commit 6935841d56

View File

@ -130,7 +130,7 @@ Server.prototype.listen = function (/* port, hostname, onlistening */) {
var port = toNumber(arguments[0]) || arguments[0] || 0
var hostname = typeof arguments[1] !== 'function' ? arguments[1] : undefined
debug('listen %o %o', port, hostname)
debug('listen port: %o hostname: %o', port, hostname)
function isObject (obj) {
return typeof obj === 'object' && obj !== null