[Groonga-commit] droonga/droonga-engine at 4166eb3 [master] Suppress annoying log message while command testing

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Mar 19 17:28:33 JST 2015


YUKI Hiroshi	2015-03-19 17:28:33 +0900 (Thu, 19 Mar 2015)

  New Revision: 4166eb36740e3eb7cbb28b53018cf974ae74b104
  https://github.com/droonga/droonga-engine/commit/4166eb36740e3eb7cbb28b53018cf974ae74b104

  Message:
    Suppress annoying log message while command testing

  Modified files:
    lib/droonga/serf/agent.rb

  Modified: lib/droonga/serf/agent.rb (+11 -0)
===================================================================
--- lib/droonga/serf/agent.rb    2015-03-18 16:42:58 +0900 (6ff5c16)
+++ lib/droonga/serf/agent.rb    2015-03-19 17:28:33 +0900 (d928c49)
@@ -138,6 +138,7 @@ module Droonga
               hour, minute, second = $4, $5, $6
               level = $7
               content = $POSTMATCH
+              return if suppressed_log_message?(content)
               level = normalize_level(level)
               logger.send(level, content)
             else
@@ -149,6 +150,16 @@ module Droonga
         end
       end
 
+      def suppressed_log_message?(content)
+        case content
+        when /memberlist: Failed to receive remote state: EOF/
+          # See also: https://github.com/hashicorp/consul/issues/598#issuecomment-71576948
+          true
+        else
+          false
+        end
+      end
+
       def normalize_level(level)
         level = level.downcase
         case level
-------------- next part --------------
HTML����������������������������...
Download 



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