Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
dgram.js: write diagnostic output with console.error
Browse files Browse the repository at this point in the history
Drop logging of stack altogether. Change from console.log to console.error
to avoid polluting stdout with diagnostic output.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
  • Loading branch information
jonseymour committed Apr 24, 2011
1 parent 698b1da commit c21d5fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/dgram.js
Expand Up @@ -126,8 +126,7 @@ Socket.prototype.bind = function() {
self._startWatcher();
self.emit('listening');
} catch (err) {
console.log('Error in unix_dgram bind of ' + self.path);
console.log(err.stack);
console.error('Error in unix_dgram bind of ' + self.path);
throw err;
}
}
Expand Down

0 comments on commit c21d5fd

Please sign in to comment.