summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMatt Jankowski <matt@jankowski.online>2024-06-14 05:50:33 -0400
committerGitHub <noreply@github.com>2024-06-14 09:50:33 +0000
commit222ab80557cfe3dac1b520bfc3a49f3b1bb88c55 (patch)
tree6cf00dc86385b25ebd36dc63ec635c9d117b6f28 /config
parentab8474fd7fb321d235f3a3ebe277baed6da9cd62 (diff)
Fix `Style/GlobalStdStream` cop in environments/* files (#30694)
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb2
-rw-r--r--config/environments/production.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index cc601bde3f8..e4da60ac8e8 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -37,7 +37,7 @@ Rails.application.configure do
config.action_controller.forgery_protection_origin_check = ENV['DISABLE_FORGERY_REQUEST_PROTECTION'].nil?
- ActiveSupport::Logger.new(STDOUT).tap do |logger|
+ ActiveSupport::Logger.new($stdout).tap do |logger|
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 6686a23d60d..b42f78b14ea 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -94,7 +94,7 @@ Rails.application.configure do
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
# Log to STDOUT by default
- config.logger = ActiveSupport::Logger.new(STDOUT)
+ config.logger = ActiveSupport::Logger.new($stdout)
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
.then { |logger| ActiveSupport::TaggedLogging.new(logger) }