[Groonga-commit] droonga/droonga-engine at 129a18e [buffered-forward] Stringify objects for log line by the logger library itself

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Mar 27 14:49:41 JST 2015


YUKI Hiroshi	2015-03-27 14:49:41 +0900 (Fri, 27 Mar 2015)

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

  Message:
    Stringify objects for log line by the logger library itself

  Modified files:
    lib/droonga/cluster.rb
    lib/droonga/dispatcher.rb

  Modified: lib/droonga/cluster.rb (+1 -1)
===================================================================
--- lib/droonga/cluster.rb    2015-03-27 14:29:02 +0900 (b3d0ecf)
+++ lib/droonga/cluster.rb    2015-03-27 14:49:41 +0900 (7c2bb7a)
@@ -101,7 +101,7 @@ module Droonga
       if @state == old_state
         logger.info("cluster state not changed")
       else
-        logger.info("cluster state changed: #{JSON.generate(@state)}")
+        logger.info("cluster state changed", :state => @state)
         engine_nodes.each(&:resume)
         on_change
       end

  Modified: lib/droonga/dispatcher.rb (+1 -1)
===================================================================
--- lib/droonga/dispatcher.rb    2015-03-27 14:29:02 +0900 (3e56b76)
+++ lib/droonga/dispatcher.rb    2015-03-27 14:49:41 +0900 (556627f)
@@ -169,7 +169,7 @@ module Droonga
           session = session_planner.create_session(id, self, collector_runner)
           @engine_state.register_session(id, session)
         else
-          logger.error("no steps error: id=#{id}, message=#{message}")
+          logger.error("no steps error", :id => id, :message => message)
           return
           #todo: take cases receiving result before its query into account
         end
-------------- next part --------------
HTML����������������������������...
Download 



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