added log message into recv method