mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
fix codestyle
This commit is contained in:
parent
b625767440
commit
ec6bd0b163
2 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ module Puma
|
|||
def error_dump(error, env=nil, options={})
|
||||
return unless @debug || options[:force]
|
||||
|
||||
options[:print_title] = true unless options.keys.include?(:print_title)
|
||||
options[:print_title] = true unless options.key?(:print_title)
|
||||
|
||||
#
|
||||
# TODO: add all info we have about request
|
||||
|
|
|
@ -300,17 +300,17 @@ module Puma
|
|||
end
|
||||
rescue SystemCallError => e
|
||||
# TODO: check if we able to use client here
|
||||
@debug_logger.error_dump(e, client&.env)
|
||||
@debug_logger.error_dump(e)
|
||||
# nothing
|
||||
rescue Errno::ECONNABORTED
|
||||
# TODO: check if we able to use client here
|
||||
@debug_logger.error_dump(e, client&.env, custom_message: 'Client closed the socket even before accept')
|
||||
@debug_logger.error_dump(e, nil, custom_message: 'Client closed the socket even before accept')
|
||||
begin
|
||||
io.close
|
||||
rescue => e
|
||||
Thread.current.purge_interrupt_queue if Thread.current.respond_to? :purge_interrupt_queue
|
||||
# TODO: check if we able to use client here
|
||||
@debug_logger.error_dump(e, client&.env)
|
||||
@debug_logger.error_dump(e, nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue