Merge pull request #540 from sheyabernstein/dev-log-level

Add support for changing log level in development
This commit is contained in:
Evgenii Burmakin 2024-12-16 14:32:31 +01:00 committed by GitHub
commit 0dc2493272
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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