[Groonga-commit] droonga/droonga-engine at 14d4897 [master] Use logger.exception instead of manual output of backtraces

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 09:39:16 JST 2015


YUKI Hiroshi	2015-04-21 09:39:16 +0900 (Tue, 21 Apr 2015)

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

  Message:
    Use logger.exception instead of manual output of backtraces

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

  Modified: lib/droonga/plugins/system/absorb_data.rb (+6 -9)
===================================================================
--- lib/droonga/plugins/system/absorb_data.rb    2015-04-20 14:37:36 +0900 (ea02f8f)
+++ lib/droonga/plugins/system/absorb_data.rb    2015-04-21 09:39:16 +0900 (3be7326)
@@ -80,17 +80,15 @@ module Droonga
                   end
                 rescue Exception => exception
                   @dumper_error_message = exception.to_s
-                  logger.error("failed to process progress",
-                               :error     => exception,
-                               :backtrace => exception.backtrace)
+                  logger.exception("failed to process progress",
+                                   exception)
                   on_finish
                 end
               end
             rescue Exception => exception
               @dumper_error_message = exception.to_s
-              logger.error("failed to start dump",
-                           :error     => exception,
-                           :backtrace => exception.backtrace)
+              logger.exception("failed to start dump",
+                               exception)
             end
 
             on_finish if @dumper_error_message
@@ -119,9 +117,8 @@ module Droonga
               end
             rescue Exception => exception
               @dumper_error_message = exception.to_s
-              logger.error("failed to finish dump",
-                           :error     => exception,
-                           :backtrace => exception.backtrace)
+              logger.exception("failed to finish dump",
+                               exception)
               error(error_name, @dumper_error_message)
             end
             super
-------------- next part --------------
HTML����������������������������...
下載 



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