Skip to content

Commit

Permalink
Make ruby DSL configuration format deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
  • Loading branch information
ganmacs committed Apr 17, 2020
1 parent e03bf7a commit 2199dc5
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 2199dc5

Please sign in to comment.