Helper function to log the peer id, optionally including IP address.
Declared in <net.h>
<net.h>
std::string LogPeer() const;
"peer=..." and optionally ", peeraddr=..."