mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- don't use "puts", use logger.debug (LOGSTASH-832)
This commit is contained in:
parent
a3c976346a
commit
987359b997
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue