Skip to content

Commit

Permalink
Merge pull request #2958 from ganmacs/make-ruby-dsl-config-deprecated
Browse files Browse the repository at this point in the history
Make ruby dsl config deprecated
  • Loading branch information
ganmacs committed Apr 22, 2020
2 parents fddde2f + 396c999 commit cdedacf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fluent/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def self.parse(str, fname, basepath = Dir.pwd, v1_config = nil, syntax: :v1)
Parser.parse(str, fname, basepath)
when :ruby
require 'fluent/config/dsl'
$log.warn("Ruby DSL configuration format is deprecated. Please use original configuration format. https://docs.fluentd.org/configuration/config-file")
Config::DSL::Parser.parse(str, File.join(basepath, fname))
else
raise "[BUG] unknown configuration parser specification:'#{parser}'"
Expand Down

0 comments on commit cdedacf

Please sign in to comment.