Skip to content

Commit

Permalink
Print complete response body along with response code for BadResponse…
Browse files Browse the repository at this point in the history
…CodeError
  • Loading branch information
amitav.mohanty committed Nov 3, 2019
1 parent c059723 commit c750dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/outputs/elasticsearch/http_client/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(response_code, url, request_body, response_body)
end

def message
"Got response code '#{response_code}' contacting Elasticsearch at URL '#{@url}'"
"Got response code '#{response_code}' contacting Elasticsearch at URL '#{@url}'. Full response: '#{response_body}'"
end
end
class HostUnreachableError < Error;
Expand Down

0 comments on commit c750dab

Please sign in to comment.