PeerNode: fix off-by-1 error in log messages
PeerNode: logging optimisation

Don't generate string only used for logging if logging disabled