[Groonga-commit] ranguba/chupa-text at 1d92aae [master] http-server: show data information on error

Back to archive index
Sutou Kouhei null+****@clear*****
Thu Jun 13 18:30:57 JST 2019


Sutou Kouhei	2019-06-13 18:30:57 +0900 (Thu, 13 Jun 2019)

  Revision: 1d92aae719d61ad58514af278fb6f664ba41eb50
  https://github.com/ranguba/chupa-text/commit/1d92aae719d61ad58514af278fb6f664ba41eb50

  Message:
    http-server: show data information on error

  Modified files:
    lib/chupa-text/decomposers/http-server.rb
    test/decomposers/test-http-server.rb

  Modified: lib/chupa-text/decomposers/http-server.rb (+1 -1)
===================================================================
--- lib/chupa-text/decomposers/http-server.rb    2019-06-13 17:05:05 +0900 (6ce5544)
+++ lib/chupa-text/decomposers/http-server.rb    2019-06-13 18:30:57 +0900 (b6347f5)
@@ -120,7 +120,7 @@ module ChupaText
           else
             error do
               message = "#{log_tag} Failed to process data in server: "
-              message << "#{url}: "
+              message << "<#{data.uri}>(#{data.mime_type}): #{url}: "
               message << "#{response.code}: #{response.message.strip}\n"
               case response.content_type
               when "application/json"

  Modified: test/decomposers/test-http-server.rb (+1 -1)
===================================================================
--- test/decomposers/test-http-server.rb    2019-06-13 17:05:05 +0900 (da1725f)
+++ test/decomposers/test-http-server.rb    2019-06-13 18:30:57 +0900 (a83b8cf)
@@ -104,7 +104,7 @@ Ruby,ChupaText
                        :error,
                        "[decomposer][http-server] " +
                        "Failed to process data in server: " +
-                       "#{@server_url}: " +
+                       "<>(#{@input_mime_type}): #{@server_url}: " +
                        "#{@response_status}: Not Found",
                      ],
                    ],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190613/0a37918e/attachment-0001.html>


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