[Groonga-commit] groonga/fluent-plugin-groonga at 9a55be1 [master] Add error class to log

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Sep 27 19:19:47 JST 2016


Kouhei Sutou	2016-09-27 19:19:47 +0900 (Tue, 27 Sep 2016)

  New Revision: 9a55be11921034f6c6454de7c92baf5a318741fa
  https://github.com/groonga/fluent-plugin-groonga/commit/9a55be11921034f6c6454de7c92baf5a318741fa

  Message:
    Add error class to log

  Modified files:
    lib/fluent/plugin/in_groonga.rb

  Modified: lib/fluent/plugin/in_groonga.rb (+1 -1)
===================================================================
--- lib/fluent/plugin/in_groonga.rb    2016-09-27 19:16:01 +0900 (ade1efb)
+++ lib/fluent/plugin/in_groonga.rb    2016-09-27 19:19:47 +0900 (8dc8429)
@@ -225,7 +225,7 @@ module Fluent
           rescue HTTP::Parser::Error, URI::InvalidURIError
             $log.error("[input][groonga][error] " +
                        "failed to parse HTTP request:",
-                       :error => $!.to_s)
+                       :error => "#{$!.class}: #{$!}")
             $log.error_backtrace
             write("HTTP1.1 400 Bad Request\r\n")
             write("Server: fluent-plugin-groonga\r\n")
-------------- next part --------------
HTML����������������������������...
다운로드 



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