Skip to content

Commit 8a04990

Browse files
committed
Add max_retries option to the configuration
This option makes possible to set a maximum number the plugin will retry writes for. It defaults to retry forever (negative max_retries) to keep backward compatibility.
1 parent 75fc6fb commit 8a04990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/mongodb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def receive(event)
202202
end
203203
else
204204
result = write_to_mongodb(collection, [document])
205-
@logger.debug("Bulk write result", :result => result)
205+
@logger.debug("Bulk write result: #{result.to_s}")
206206
end
207207

208208
rescue => e

0 commit comments

Comments
 (0)