1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

fix codestyle

This commit is contained in:
Vyacheslav Alexeev 2020-05-04 23:13:00 +03:00
parent b625767440
commit ec6bd0b163
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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