Fix log output for request errors.