Daijiro MORI
null+****@clear*****
Fri May 31 13:24:56 JST 2013
Daijiro MORI 2013-05-31 13:24:56 +0900 (Fri, 31 May 2013) New Revision: 3d24efa3e9789da2bf79da3e0575c04f55c0e709 https://github.com/groonga/fluent-plugin-droonga/commit/3d24efa3e9789da2bf79da3e0575c04f55c0e709 Message: Rescue exceptions while handling commands. Modified files: lib/droonga/handler.rb Modified: lib/droonga/handler.rb (+8 -0) =================================================================== --- lib/droonga/handler.rb 2013-05-29 15:06:41 +0900 (dc6ad59) +++ lib/droonga/handler.rb 2013-05-31 13:24:56 +0900 (7c5f241) @@ -73,6 +73,14 @@ module Droonga def handle(command, request, *arguments) __send__(self.class.method_name(command), request, *arguments) + rescue => exception + if $log + $log.error "error while handling #{command}", + request: request, + arguments: arguments, + exception: exception + $log.error_backtrace + end end def prefer_synchronous?(command) -------------- next part -------------- HTML����������������������������... Download