Added logging of HTTP response