log error messages for socket.io and commented location and condition of post request