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

Revert "Add ability to specify custom logger (#2725)" (#2769)

This reverts commit 9cf89e6971.
This commit is contained in:
Nate Berkopec 2021-12-14 14:38:28 -07:00 committed by GitHub
parent 53978d22c5
commit 65a821aa7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 18 deletions

View file

@ -365,11 +365,6 @@ module Puma
@options[:log_requests] = which
end
# Pass in a custom logging class instance
def logger(custom_logger)
@options[:logger] = custom_logger
end
# Show debugging info
#
def debug

View file

@ -1,13 +0,0 @@
class CustomLogger
def initialize(output=STDOUT)
@output = output
end
def write(msg)
@output.print 'Custom logging: ' + msg
@output.flush
end
end
log_requests
logger CustomLogger.new(STDOUT)

View file

@ -121,6 +121,9 @@ class TestConfigFile < TestConfigFileBase
assert_equal [ssl_binding], conf.options[:binds]
end
def test_ssl_bind_no_tlsv1_1
skip_if :jruby
skip_unless :ssl