From 28250b340c3d6055bfda063530aafaae99bd3983 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 19 Dec 2025 09:06:18 -0500 Subject: [PATCH] Move the :fatal log setting into the SaaS config This should only be set if the app is using the rails-structured-logging gem, which means it should only be set in the SAAS config. I think this is just something we missed in one of the decoupling exercises we did. --- config/environments/production.rb | 3 --- saas/config/environments/production.rb | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 173318fe3..f2ca92526 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -76,9 +76,6 @@ Rails.application.configure do .tap { |logger| logger.formatter = ::Logger::Formatter.new } .then { |logger| ActiveSupport::TaggedLogging.new(logger) } - # Suppress unstructured log lines - config.log_level = :fatal - # Prepend all log lines with the following tags. config.log_tags = [ :request_id ] diff --git a/saas/config/environments/production.rb b/saas/config/environments/production.rb index 3cad5c015..9cb886ed8 100644 --- a/saas/config/environments/production.rb +++ b/saas/config/environments/production.rb @@ -1,6 +1,9 @@ Rails.application.configure do config.active_storage.service = :purestorage + + # Enable structured logging, suppress unstructured log lines config.structured_logging.logger = ActiveSupport::Logger.new(STDOUT) + config.log_level = :fatal config.action_controller.default_url_options = { host: "app.fizzy.do", protocol: "https" } config.action_mailer.default_url_options = { host: "app.fizzy.do", protocol: "https" }