Navigation Menu

Skip to content

Commit

Permalink
out: use compat_parameters helper for v0.14
Browse files Browse the repository at this point in the history
It keeps compatibility with v0.12 style configuration.

ref. http://docs.fluentd.org/v0.14/articles/plugin-update-from-v12#buffered-output-plugins
  • Loading branch information
kenhys committed Apr 12, 2017
1 parent 7f6822a commit 6f007c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/fluent/plugin/out_groonga.rb
Expand Up @@ -27,6 +27,7 @@ module Fluent
module Plugin
class GroongaOutput < Output
Plugin.register_output("groonga", self)
helpers :compat_parameters

def initialize
super
Expand Down Expand Up @@ -73,7 +74,13 @@ def initialize
end
end

config_section :buffer do
config_set_default :@type, "memory"
config_set_default :chunk_keys, ['tag']
end

def configure(conf)
compat_parameters_convert(conf, :buffer)
super
@client = create_client(@protocol)
@client.configure(conf)
Expand Down

0 comments on commit 6f007c2

Please sign in to comment.