mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Merge pull request #540 from sheyabernstein/dev-log-level
Add support for changing log level in development
This commit is contained in:
commit
0dc2493272
1 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,11 @@ Rails.application.configure do
|
||||||
# Enable server timing
|
# Enable server timing
|
||||||
config.server_timing = true
|
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.
|
# Enable/disable caching. By default caching is disabled.
|
||||||
# Run rails dev:cache to toggle caching.
|
# Run rails dev:cache to toggle caching.
|
||||||
if Rails.root.join('tmp/caching-dev.txt').exist?
|
if Rails.root.join('tmp/caching-dev.txt').exist?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue