More logging in socket.write