Skip to content

Commit a3551be

Browse files
committed
minor fixes
1 parent 50315b9 commit a3551be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def perform_request(url, method, path, params={}, body=nil)
7777
end
7878

7979
code = resp.code
80-
if code < 200 || code > 299 #&& code != 404
80+
if code < 200 || code > 299 # assume anything not 2xx is an error that the layer above needs to interpret
8181
raise ::LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError.new(code, request_uri, body, resp.body)
8282
end
8383

0 commit comments

Comments
 (0)