diff --git a/config/environments/production.rb b/config/environments/production.rb index 4fd23bc8e..65454c581 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -50,6 +50,10 @@ Rails.application.configure do .tap { |logger| logger.formatter = ::Logger::Formatter.new } .then { |logger| ActiveSupport::TaggedLogging.new(logger) } + # No normal logs. Suppress everything that's not structured. + config.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new(nil)) + config.log_level = :fatal + # Structured JSON logging config.structured_logging.logger = ActiveSupport::Logger.new(STDOUT)