fix logging

To see the difference, run 
`node examples/PeerDiscovery.js`