Skip to content

Commit

Permalink
Require rack/common_logger only if :verbose is true (puma#2547)
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmaples authored and JuanitoFatas committed Sep 9, 2022
1 parent 267f415 commit 17dad6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions History.md
Expand Up @@ -19,6 +19,7 @@
* Fix phased restart errors related to nio4r gem when using the Puma control server ([#2516])
* Add `#string` method to `Puma::NullIO` ([#2520])
* Fix binding via Rack handler to IPv6 addresses ([#2521])
* Require rack/common_logger explicitly if :verbose is true ([#2547])

* Refactor
* Refactor MiniSSL::Context on MRI, fix MiniSSL::Socket#write ([#2519])
Expand Down
1 change: 1 addition & 0 deletions lib/rack/handler/puma.rb
Expand Up @@ -31,6 +31,7 @@ def self.config(app, options = {})

conf = ::Puma::Configuration.new(options, default_options) do |user_config, file_config, default_config|
if options.delete(:Verbose)
require 'rack/common_logger'
app = Rack::CommonLogger.new(app, STDOUT)
end

Expand Down

0 comments on commit 17dad6f

Please sign in to comment.