[Groonga-commit] groonga/fluent-plugin-groonga at 6f007c2 [master] out: use compat_parameters helper for v0.14

Back to archive index

Kentaro Hayashi null+****@clear*****
Wed Apr 12 18:11:26 JST 2017


Kentaro Hayashi	2017-04-12 18:11:26 +0900 (Wed, 12 Apr 2017)

  New Revision: 6f007c21e29dca0026c8c641de553cc9a6947927
  https://github.com/groonga/fluent-plugin-groonga/commit/6f007c21e29dca0026c8c641de553cc9a6947927

  Merged 780ee73: Merge pull request #16 from groonga/use-v0.14-api-out-groonga

  Message:
    out: use compat_parameters helper for v0.14
    
    It keeps compatibility with v0.12 style configuration.
    
    ref. http://docs.fluentd.org/v0.14/articles/plugin-update-from-v12#buffered-output-plugins

  Modified files:
    lib/fluent/plugin/out_groonga.rb

  Modified: lib/fluent/plugin/out_groonga.rb (+7 -0)
===================================================================
--- lib/fluent/plugin/out_groonga.rb    2017-04-12 18:07:01 +0900 (256016b)
+++ lib/fluent/plugin/out_groonga.rb    2017-04-12 18:11:26 +0900 (39fc0b7)
@@ -27,6 +27,7 @@ module Fluent
   module Plugin
   class GroongaOutput < Output
     Plugin.register_output("groonga", self)
+    helpers :compat_parameters
 
     def initialize
       super
@@ -73,7 +74,13 @@ module Fluent
       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)
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index