Added logging to httpclient.