lib/fluent/plugin/in_tail.rb in fluentd-0.10.34 vs lib/fluent/plugin/in_tail.rb in fluentd-0.10.35

- old
+ new

@@ -40,10 +40,10 @@ if @paths.empty? raise ConfigError, "tail: 'path' parameter is required on tail input" end if @pos_file - @pf_file = File.open(@pos_file, File::RDWR|File::CREAT) + @pf_file = File.open(@pos_file, File::RDWR|File::CREAT, DEFAULT_FILE_PERMISSION) @pf_file.sync = true @pf = PositionFile.parse(@pf_file) else $log.warn "'pos_file PATH' parameter is not set to a 'tail' source." $log.warn "this parameter is highly recommended to save the position to resume tailing."