[Groonga-commit] groonga/groonga-query-log at ca913e9 [master] groonga-query-log-replay: handle non groonga-client errors too

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Sep 27 14:14:39 JST 2017


Kouhei Sutou	2017-09-27 14:14:39 +0900 (Wed, 27 Sep 2017)

  New Revision: ca913e9ed3370e955a018a355a1eccb9dde2430b
  https://github.com/groonga/groonga-query-log/commit/ca913e9ed3370e955a018a355a1eccb9dde2430b

  Message:
    groonga-query-log-replay: handle non groonga-client errors too

  Modified files:
    lib/groonga/query-log/replayer.rb

  Modified: lib/groonga/query-log/replayer.rb (+7 -0)
===================================================================
--- lib/groonga/query-log/replayer.rb    2017-09-27 14:14:15 +0900 (017ee8d)
+++ lib/groonga/query-log/replayer.rb    2017-09-27 14:14:39 +0900 (33ae1da)
@@ -89,6 +89,13 @@ module Groonga
               $stderr.puts($!.raw_error.message)
               $stderr.puts($!.raw_error.backtrace)
               return false
+            rescue
+              # TODO: add error log mechanism
+              $stderr.puts(Time.now.iso8601)
+              $stderr.puts(statistic.command.original_source)
+              $stderr.puts($!.message)
+              $stderr.puts($!.backtrace)
+              return false
             end
           end
         end
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170927/7fa3c6f5/attachment-0001.htm 



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