[Groonga-commit] droonga/droonga-engine at b2b8698 [master] Log exceptions with details

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 14:44:38 JST 2015


YUKI Hiroshi	2015-04-21 14:44:38 +0900 (Tue, 21 Apr 2015)

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

  Message:
    Log exceptions with details

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

  Modified: lib/droonga/plugins/system/absorb_data.rb (+5 -0)
===================================================================
--- lib/droonga/plugins/system/absorb_data.rb    2015-04-21 14:19:05 +0900 (f115f4a)
+++ lib/droonga/plugins/system/absorb_data.rb    2015-04-21 14:44:38 +0900 (2376cc3)
@@ -58,8 +58,13 @@ module Droonga
                            :message => message)
             end
             @dumper.on_error = lambda do |error|
+              if error.is_a?(Exception)
+                logger.exception("unexpected exception while dump",
+                                 error)
+              else
               logger.error("unexpected error while dump",
                            :error => error)
+              end
             end
 
             @previous_report_time = Time.now
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index