[Groonga-commit] droonga/droonga-engine at dbd886e [buffered-forward] Output more logs for restarting reasons

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Mar 27 20:05:39 JST 2015


YUKI Hiroshi	2015-03-27 20:05:39 +0900 (Fri, 27 Mar 2015)

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

  Message:
    Output more logs for restarting reasons

  Modified files:
    lib/droonga/command/droonga_engine.rb

  Modified: lib/droonga/command/droonga_engine.rb (+2 -0)
===================================================================
--- lib/droonga/command/droonga_engine.rb    2015-03-27 20:05:26 +0900 (842769d)
+++ lib/droonga/command/droonga_engine.rb    2015-03-27 20:05:39 +0900 (90cd2a9)
@@ -569,6 +569,7 @@ module Droonga
         def run_catalog_observer
           catalog_observer = FileObserver.new(@loop, Path.catalog)
           catalog_observer.on_change = lambda do
+            logger.info("restart by updated catalog.json")
             restart_graceful
             @serf.update_cluster_id
           end
@@ -584,6 +585,7 @@ module Droonga
             new_state = Cluster.load_state_file
             if new_state and previous_state and
                  new_state[my_name] != previous_state[my_name]
+              logger.info("restart by updated cluster-state.json")
               restart_graceful
             end
             previous_state = new_state
-------------- next part --------------
HTML����������������������������...
Download 



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