lib/logstash/inputs/exec.rb in logstash-input-exec-3.1.1 vs lib/logstash/inputs/exec.rb in logstash-input-exec-3.1.2
- old
+ new
@@ -38,11 +38,11 @@
def inner_run(queue)
start = Time.now
execute(@command, queue)
duration = Time.now - start
- @logger.info? && @logger.info("Command completed", :command => @command, :duration => duration)
+ @logger.debug? && @logger.debug("Command completed", :command => @command, :duration => duration)
wait_until_end_of_interval(duration)
end
def stop
@@ -69,10 +69,10 @@
# Execute a given command
# @param [String] A command string
# @param [Array or Queue] A queue to append events to
def execute(command, queue)
- @logger.info? && @logger.info("Running exec", :command => command)
+ @logger.debug? && @logger.debug("Running exec", :command => command)
begin
@io = IO.popen(command)
@codec.decode(@io.read) do |event|
decorate(event)
event.set("host", @hostname)