net: fix debug for dnsopts
authorEvan Lucas <evanlucas@me.com>
Thu, 25 Jun 2015 12:29:01 +0000 (07:29 -0500)
committerEvan Lucas <evanlucas@me.com>
Fri, 26 Jun 2015 12:42:43 +0000 (07:42 -0500)
Prevent debug call from showing [object Object] for dnsopts in
lookupAndConnect

PR-URL: https://github.com/nodejs/io.js/pull/2059
Reviewed-by: Colin Ihrig <cjihrig@gmail.com>
lib/net.js

index d4a40fe..4c5e62b 100644 (file)
@@ -941,7 +941,7 @@ function lookupAndConnect(self, options) {
     dnsopts.hints = dns.ADDRCONFIG | dns.V4MAPPED;
 
   debug('connect: find host ' + host);
-  debug('connect: dns options ' + dnsopts);
+  debug('connect: dns options', dnsopts);
   self._host = host;
   var lookup = options.lookup || dns.lookup;
   lookup(host, dnsopts, function(err, ip, addressType) {