Skip to content

Commit

Permalink
Require rack/common_logger only if :Verbose is true
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmaples committed Feb 3, 2021
1 parent f7f58ae commit 54d44f1
Showing 1 changed file with 1 addition and 0 deletions.
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 54d44f1

Please sign in to comment.