Skip to content

Commit c750dab

Browse files
author
amitav.mohanty
committed
Print complete response body along with response code for BadResponseCodeError
1 parent c059723 commit c750dab

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

Lines changed: 1 addition & 1 deletion
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)