From 4f632b9a52fef580b57a016f782e1a3638f7f957 Mon Sep 17 00:00:00 2001 From: Vyacheslav Alexeev Date: Sat, 9 May 2020 17:50:29 +0300 Subject: [PATCH] remove logging where it is unnecessary --- lib/puma/server.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/puma/server.rb b/lib/puma/server.rb index d46c8413..e9da2bcb 100644 --- a/lib/puma/server.rb +++ b/lib/puma/server.rb @@ -113,18 +113,16 @@ module Puma def cork_socket(socket) begin socket.setsockopt(6, 3, 1) if socket.kind_of? TCPSocket - rescue IOError, SystemCallError => e + rescue IOError, SystemCallError Thread.current.purge_interrupt_queue if Thread.current.respond_to? :purge_interrupt_queue - @debug_logger.error_dump(e) end end def uncork_socket(socket) begin socket.setsockopt(6, 3, 0) if socket.kind_of? TCPSocket - rescue IOError, SystemCallError => e + rescue IOError, SystemCallError Thread.current.purge_interrupt_queue if Thread.current.respond_to? :purge_interrupt_queue - @debug_logger.error_dump(e) end end