From 29bf4ac9abd4ab1f600e88b1c4611c7f57a126a9 Mon Sep 17 00:00:00 2001 From: Maple Ong Date: Wed, 3 Feb 2021 16:34:11 -0500 Subject: [PATCH] Require rack/common_logger only if :verbose is true (#2547) --- History.md | 1 + lib/rack/handler/puma.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/History.md b/History.md index 888b9adf..9f57e083 100644 --- a/History.md +++ b/History.md @@ -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]) diff --git a/lib/rack/handler/puma.rb b/lib/rack/handler/puma.rb index 6ce68e54..d00f2306 100644 --- a/lib/rack/handler/puma.rb +++ b/lib/rack/handler/puma.rb @@ -31,6 +31,7 @@ module Rack 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