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 @@ # 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