- don't use "puts", use logger.debug (LOGSTASH-832)

This commit is contained in:
Jordan Sissel 2013-01-09 13:35:56 -08:00
parent a3c976346a
commit 987359b997

View file

@ -99,7 +99,8 @@ class LogStash::Outputs::ElasticSearchHTTP < LogStash::Outputs::Base
end # def receive_bulk
def flush
puts "Flushing #{@queue.count} events"
@logger.debug? && @logger.debug("Flushing events to elasticsearch",
:count => @queue.count)
# If we don't tack a trailing newline at the end, elasticsearch
# doesn't seem to process the last event in this bulk index call.
#