[Groonga-commit] droonga/droonga-engine at d10f54b [master] Report details of error to the log

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Apr 17 22:41:35 JST 2015


YUKI Hiroshi	2015-04-17 22:41:35 +0900 (Fri, 17 Apr 2015)

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

  Message:
    Report details of error to the log

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

  Modified: lib/droonga/plugins/system/absorb_data.rb (+9 -0)
===================================================================
--- lib/droonga/plugins/system/absorb_data.rb    2015-04-17 18:39:54 +0900 (06a55ed)
+++ lib/droonga/plugins/system/absorb_data.rb    2015-04-17 22:41:35 +0900 (ea02f8f)
@@ -80,11 +80,17 @@ module Droonga
                   end
                 rescue Exception => exception
                   @dumper_error_message = exception.to_s
+                  logger.error("failed to process progress",
+                               :error     => exception,
+                               :backtrace => exception.backtrace)
                   on_finish
                 end
               end
             rescue Exception => exception
               @dumper_error_message = exception.to_s
+              logger.error("failed to start dump",
+                           :error     => exception,
+                           :backtrace => exception.backtrace)
             end
 
             on_finish if @dumper_error_message
@@ -113,6 +119,9 @@ module Droonga
               end
             rescue Exception => exception
               @dumper_error_message = exception.to_s
+              logger.error("failed to finish dump",
+                           :error     => exception,
+                           :backtrace => exception.backtrace)
               error(error_name, @dumper_error_message)
             end
             super
-------------- next part --------------
HTML����������������������������...
下载 



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