lib/logstash/outputs/file.rb in logstash-output-file-4.0.0 vs lib/logstash/outputs/file.rb in logstash-output-file-4.0.1
- old
+ new
@@ -217,10 +217,10 @@
private
def close_stale_files
now = Time.now
return unless now - @last_stale_cleanup_cycle >= @stale_cleanup_interval
- @logger.info("Starting stale files cleanup cycle", :files => @files)
+ @logger.debug("Starting stale files cleanup cycle", :files => @files)
inactive_files = @files.select { |path, fd| not fd.active }
@logger.debug("%d stale files found" % inactive_files.count, :inactive_files => inactive_files)
inactive_files.each do |path, fd|
@logger.info("Closing file %s" % path)
fd.close