[Groonga-commit] groonga/fluent-plugin-groonga at 0d3da24 [master] Add log on failing to connect to Groonga

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Sep 27 19:29:08 JST 2016


Kouhei Sutou	2016-09-27 19:29:08 +0900 (Tue, 27 Sep 2016)

  New Revision: 0d3da24f9de515b72895c0ce7c1ddcd2a1066d65
  https://github.com/groonga/fluent-plugin-groonga/commit/0d3da24f9de515b72895c0ce7c1ddcd2a1066d65

  Message:
    Add log on failing to connect to Groonga

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

  Modified: lib/fluent/plugin/in_groonga.rb (+4 -0)
===================================================================
--- lib/fluent/plugin/in_groonga.rb    2016-09-27 19:27:32 +0900 (d7157f5)
+++ lib/fluent/plugin/in_groonga.rb    2016-09-27 19:29:08 +0900 (c9cbe32)
@@ -213,6 +213,10 @@ module Fluent
         def on_connect
           @repeater =****@input*****_repeater(self)
           @repeater.on_connect_failed do
+            $log.error("[input][groonga][error] " +
+                       "failed to connect to Groonga:",
+                       :real_host => @input.real_host,
+                       :real_port => @input.real_port)
             close
           end
           @request_handler = RequestHandler.new(@input, @repeater)
-------------- next part --------------
HTML����������������������������...
Download 



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