updated logging of requests on error