lib/logstash/outputs/file.rb in logstash-output-file-4.2.5 vs lib/logstash/outputs/file.rb in logstash-output-file-4.2.6

- old
+ new

@@ -274,10 +274,10 @@ end end # work around a bug opening fifos (bug JRUBY-6280) stat = File.stat(path) rescue nil - if stat && stat.ftype == "fifo" && LogStash::Environment.jruby? + if stat && stat.ftype == "fifo" fd = java.io.FileWriter.new(java.io.File.new(path)) else if @file_mode != -1 fd = File.new(path, "a+", @file_mode) else