[Groonga-commit] droonga/droonga-engine at deeedd3 [master] Output error information to the log while dump

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 15 19:09:28 JST 2015


YUKI Hiroshi	2015-04-15 19:09:28 +0900 (Wed, 15 Apr 2015)

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

  Message:
    Output error information to the log while dump

  Modified files:
    lib/droonga/plugins/system/absorb_data.rb

  Modified: lib/droonga/plugins/system/absorb_data.rb (+6 -1)
===================================================================
--- lib/droonga/plugins/system/absorb_data.rb    2015-04-15 18:14:01 +0900 (5b5addc)
+++ lib/droonga/plugins/system/absorb_data.rb    2015-04-15 19:09:28 +0900 (3db8f43)
@@ -53,8 +53,13 @@ module Droonga
               on_finish
               logger.trace("start: finish")
             end
+            dumper.on_progress = lambda do |message|
+              logger.trace("dump progress",
+                           :message => message)
+            end
             dumper.on_error = lambda do |error|
-              logger.error(error)
+              logger.error("unexpected error while dump",
+                           :error => error)
             end
 
             @previous_report_time = Time.now
-------------- next part --------------
HTML����������������������������...
下载 



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