From 0e384d99c144ab0c39d7a49b25af93d9233b8629 Mon Sep 17 00:00:00 2001 From: Sheya Bernstein Date: Fri, 13 Dec 2024 11:20:10 +0000 Subject: [PATCH] Add support for changing log level in development --- config/environments/development.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 43f8e399..e41cfed1 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -19,6 +19,11 @@ Rails.application.configure do # Enable server timing config.server_timing = true + # Info include 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, leave the level on "debug". + config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "debug") + # Enable/disable caching. By default caching is disabled. # Run rails dev:cache to toggle caching. if Rails.root.join('tmp/caching-dev.txt').exist?