Skip to content

Commit 48c8075

Browse files
andrewvcjsvd
authored andcommitted
Omit extraneous debug information in error messages
Fixes #447
1 parent 1a7f5e1 commit 48c8075

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/logstash/outputs/elasticsearch/common.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ def safe_bulk(es_actions,actions)
177177
"Attempted to send a bulk request to Elasticsearch configured at '#{@client.client_options[:hosts]}',"+
178178
" but Elasticsearch appears to be unreachable or down!",
179179
:error_message => e.message,
180-
:class => e.class.name,
181-
:client_config => @client.client_options,
180+
:class => e.class.name
182181
)
183182
@logger.debug("Failed actions for last bad bulk request!", :actions => actions)
184183

@@ -193,8 +192,7 @@ def safe_bulk(es_actions,actions)
193192
"the configuration provided?",
194193
:error_message => e.message,
195194
:error_class => e.class.name,
196-
:backtrace => e.backtrace,
197-
:client_config => @client.client_options,
195+
:backtrace => e.backtrace
198196
)
199197

200198
@logger.debug("Failed actions for last bad bulk request!", :actions => actions)

0 commit comments

Comments
 (0)