[Groonga-commit] droonga/fluent-plugin-droonga at 8be037f [master] handler: handle unknown error while #handle

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 28 16:12:46 JST 2014


Kouhei Sutou	2014-02-28 16:12:46 +0900 (Fri, 28 Feb 2014)

  New Revision: 8be037f931defa0fb7cfbca6c93a9c704ccf2963
  https://github.com/droonga/fluent-plugin-droonga/commit/8be037f931defa0fb7cfbca6c93a9c704ccf2963

  Message:
    handler: handle unknown error while #handle

  Modified files:
    lib/droonga/handler_runner.rb

  Modified: lib/droonga/handler_runner.rb (+6 -0)
===================================================================
--- lib/droonga/handler_runner.rb    2014-02-28 15:48:53 +0900 (c33a04a)
+++ lib/droonga/handler_runner.rb    2014-02-28 16:12:46 +0900 (eb642fd)
@@ -109,6 +109,12 @@ module Droonga
         end
       rescue ErrorMessage => error
         messenger.error(error.status_code, error.response_body)
+      rescue => error
+        logger.exception("failed to handle message", error)
+        internal_server_error =
+          ErrorMessages::InternalServerError.new("Unknown internal error")
+        messenger.error(internal_server_error.status_code,
+                        internal_server_error.response_body)
       end
     end
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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