From 0417639049f9be1bd225ae833b5da341fbce5ef1 Mon Sep 17 00:00:00 2001 From: Dmytro Shteflyuk Date: Mon, 22 Dec 2025 16:54:47 -0500 Subject: [PATCH] Restore log level configurability in production environment --- config/environments/production.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 1927557cf..03a9df677 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -90,6 +90,11 @@ Rails.application.configure do # Prepend all log lines with the following tags. 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 + # want to log everything, set the level to "debug". + config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") + # Use a different cache store in production. config.cache_store = :solid_cache_store