mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
remove logging where it is unnecessary
This commit is contained in:
parent
25bceedda4
commit
4f632b9a52
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue