improve logging in elasticsearch_http to address #1367