Skip to content

Commit

Permalink
Fix Style/GlobalStdStream cop in environments/* files (#30694)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Jun 14, 2024
1 parent ab8474f commit 222ab80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

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
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
# 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) }

Expand Down

0 comments on commit 222ab80

Please sign in to comment.