Skip to content

Commit 898cc1e

Browse files
evanlucasmscdex
authored andcommitted
net: fix debug for dnsopts
Prevent debug call from showing [object Object] for dnsopts in lookupAndConnect PR-URL: nodejs#2059 Reviewed-by: Colin Ihrig <cjihrig@gmail.com>
1 parent 40c334d commit 898cc1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/net.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ function lookupAndConnect(self, options) {
949949
}
950950

951951
debug('connect: find host ' + host);
952-
debug('connect: dns options ' + dnsopts);
952+
debug('connect: dns options', dnsopts);
953953
self._host = host;
954954
var lookup = options.lookup || dns.lookup;
955955
lookup(host, dnsopts, function(err, ip, addressType) {

0 commit comments

Comments
 (0)