[Groonga-commit] droonga/droonga-engine at 010616d [master] Output more helpful messages for "verbose" mode

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 18:32:20 JST 2015


YUKI Hiroshi	2015-04-21 18:32:20 +0900 (Tue, 21 Apr 2015)

  New Revision: 010616d3f6bcc5dc2f2133cf3c3fd8529666a03a
  https://github.com/droonga/droonga-engine/commit/010616d3f6bcc5dc2f2133cf3c3fd8529666a03a

  Message:
    Output more helpful messages for "verbose" mode

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+5 -1)
===================================================================
--- lib/droonga/serf.rb    2015-04-21 18:32:00 +0900 (86a0b64)
+++ lib/droonga/serf.rb    2015-04-21 18:32:20 +0900 (1deb0c5)
@@ -238,9 +238,13 @@ module Droonga
       yield # the given operation must restart the service.
 
       while Time.now - start_time < CHECK_RESTARTED_TIMEOUT
+        puts "Checking nodes are restarted or not:" if @verbose
         targets.reject! do |target|
           name = target[:serf].get_tag(Tag.internal_node_name)
-          name != target[:previous_name]
+          restarted = name != target[:previous_name]
+          puts "  #{name} vs #{target[:previous_name]} => " +
+                 "#{restarted ? "restarted" : "not yet"}" if @verbose
+          restarted
         end
         break if targets.empty?
         sleep(CHECK_RESTARTED_INTERVAL)
-------------- next part --------------
HTML����������������������������...
다운로드 



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