[Groonga-commit] droonga/droonga-engine at 3a79588 [master] Output more trace log for unexpected errors on BufferedTCPSocket

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 28 10:49:40 JST 2015


YUKI Hiroshi	2015-04-28 10:49:40 +0900 (Tue, 28 Apr 2015)

  New Revision: 3a79588695e2cb16bebefc27bff3c1210489e74d
  https://github.com/droonga/droonga-engine/commit/3a79588695e2cb16bebefc27bff3c1210489e74d

  Message:
    Output more trace log for unexpected errors on BufferedTCPSocket

  Modified files:
    lib/droonga/buffered_tcp_socket.rb

  Modified: lib/droonga/buffered_tcp_socket.rb (+7 -1)
===================================================================
--- lib/droonga/buffered_tcp_socket.rb    2015-04-24 01:03:49 +0900 (d45e636)
+++ lib/droonga/buffered_tcp_socket.rb    2015-04-28 10:49:40 +0900 (be850cc)
@@ -55,9 +55,15 @@ module Droonga
           end
         rescue Errno::EINTR
           @_write_buffer.unshift(chunk)
+          logger.trace("Failed to send chunk. Retry later.",
+                       :chunk => chunk,
+                       :errpr => "Errno::EINTR")
           return
-        rescue SystemCallError, IOError, SocketError
+        rescue SystemCallError, IOError, SocketError => exception
           @_write_buffer.unshift(chunk)
+          logger.trace("Failed to send chunk. Retry later.",
+                       :chunk => chunk,
+                       :exception => exception)
           return close
         end
       end
-------------- next part --------------
HTML����������������������������...
下載 



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