summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2017-04-11 17:31:54 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2017-04-18 22:04:04 +0200
commit94334344618544155cb0d4feadfc19526f746e34 (patch)
treef71e43f53936ab9d483bc2cfde37d311f545b38d /lib
parent571882c5a45872ac67e4e29513c4c8f23af9f781 (diff)
downloadandroid-node-v8-94334344618544155cb0d4feadfc19526f746e34.tar.gz
android-node-v8-94334344618544155cb0d4feadfc19526f746e34.tar.bz2
android-node-v8-94334344618544155cb0d4feadfc19526f746e34.zip
net: don't concatenate strings in debug logging
Not necessary, not a good idea. PR-URL: https://github.com/nodejs/node/pull/12342 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/net.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net.js b/lib/net.js
index 6e99448076..c17d0a3928 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -1007,7 +1007,7 @@ function lookupAndConnect(self, options) {
dnsopts.hints = dns.ADDRCONFIG;
}
- debug('connect: find host ' + host);
+ debug('connect: find host', host);
debug('connect: dns options', dnsopts);
self._host = host;
var lookup = options.lookup || dns.lookup;
@@ -1183,7 +1183,7 @@ function createServerHandle(address, port, addressType, fd) {
handle = createHandle(fd);
} catch (e) {
// Not a fd we can listen on. This will trigger an error.
- debug('listen invalid fd=' + fd + ': ' + e.message);
+ debug('listen invalid fd=%d:', fd, e.message);
return uv.UV_EINVAL;
}
handle.open(fd);
@@ -1204,7 +1204,7 @@ function createServerHandle(address, port, addressType, fd) {
}
if (address || port || isTCP) {
- debug('bind to ' + (address || 'anycast'));
+ debug('bind to', address || 'any');
if (!address) {
// Try binding to ipv6 first
err = handle.bind6('::', port);