Added logging statements on receiving a socket message for debugging purposes