Skip to content

Commit eb63402

Browse files
amitav.mohantyamitavmohanty01
amitav.mohanty
authored andcommitted
Print complete response body along with response code for BadResponseCodeError
1 parent 612e52e commit eb63402

File tree

1 file changed

+1
-1
lines changed
  • lib/logstash/outputs/elasticsearch/http_client

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(response_code, url, request_body, response_body)
1212
end
1313

1414
def message
15-
"Got response code '#{response_code}' contacting Elasticsearch at URL '#{@url}'"
15+
"Got response code '#{response_code}' contacting Elasticsearch at URL '#{@url}'. Full response: '#{response_body}'"
1616
end
1717
end
1818
class HostUnreachableError < Error;

0 commit comments

Comments
 (0)