From cfb2000a55fadd2ec27f08e2a7c3566b6ab94ded Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Wed, 17 Jan 2024 13:31:05 -0500 Subject: [PATCH] Standard cleanups --- config/application.rb | 4 ++-- config/environments/production.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/application.rb b/config/application.rb index 92a9830..3d6369b 100644 --- a/config/application.rb +++ b/config/application.rb @@ -26,7 +26,7 @@ class Application < Rails::Application # Please, add to the `ignore` list any other `lib` subdirectories that do # not contain `.rb` files, or that should not be reloaded or eager loaded. # Common ones are `templates`, `generators`, or `middleware`, for example. - config.autoload_lib(ignore: %w(assets tasks)) + config.autoload_lib(ignore: %w[assets tasks]) # Configuration for the application, engines, and railties goes here. # @@ -38,7 +38,7 @@ class Application < Rails::Application # Custom directories with classes and modules you want to be autoloadable. config.autoload_paths += %W[#{config.root}/lib] - + # Don't generate system test files. config.generators.system_tests = nil diff --git a/config/environments/production.rb b/config/environments/production.rb index f1d2031..61fd756 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -44,12 +44,12 @@ # config.force_ssl = true # Log to STDOUT by default - config.logger = ActiveSupport::Logger.new(STDOUT) - .tap { |logger| logger.formatter = ::Logger::Formatter.new } + config.logger = ActiveSupport::Logger.new($stdout) + .tap { |logger| logger.formatter = ::Logger::Formatter.new } .then { |logger| ActiveSupport::TaggedLogging.new(logger) } # Prepend all log lines with the following tags. - config.log_tags = [ :request_id ] + config.log_tags = [:request_id] # "info" includes generic and useful information about system operation, but avoids logging too much # information to avoid inadvertent exposure of personally identifiable information (PII). If you