log before receiveBytes from peer