More logging in peer.js