[Groonga-commit] droonga/droonga-engine at d1130dd [buffered-forward] Output more trace logs for forwarding

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Dec 22 17:28:44 JST 2014


YUKI Hiroshi	2014-12-22 17:28:44 +0900 (Mon, 22 Dec 2014)

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

  Message:
    Output more trace logs for forwarding

  Modified files:
    lib/droonga/forward_buffer.rb

  Modified: lib/droonga/forward_buffer.rb (+2 -0)
===================================================================
--- lib/droonga/forward_buffer.rb    2014-12-22 17:28:17 +0900 (e7f2fd6)
+++ lib/droonga/forward_buffer.rb    2014-12-22 17:28:44 +0900 (fadbde7)
@@ -69,6 +69,7 @@ module Droonga
 
     private
     def output(buffered_message_path)
+      logger.trace("output: start (#{buffered_message_path})")
       time_stamp = buffered_message_path.basename(SUFFIX)
       file_contents = buffered_message_path.read
       @unpacker.feed(file_contents)
@@ -77,6 +78,7 @@ module Droonga
       @forwarder.forward(buffered_message["message"],
                          buffered_message["destination"])
       FileUtils.rm_f(buffered_message_path.to_s)
+      logger.trace("output: done (#{buffered_message_path})")
     end
 
     def file_path(time_stamp=Time.now)
-------------- next part --------------
HTML����������������������������...
Télécharger 



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