Skip to content

Commit 313487b

Browse files
authored
[rails] Use higher log level (#9319)
Using a higher log level bypasses a lot of unused instrumentation code. +-------------------------+---------+------+------+-----+-----+-------+------------+--------------+ | branch_name|plaintext|update| json| db|query|fortune|cached-query|weighted_score| +-------------------------+---------+------+------+-----+-----+-------+------------+--------------+ | master| 22816| 8249| 82981|21715|12531| 11234| 13259| 1006| | rails/increase-log-level| 24719| 11040| 90706|25126|16022| 16666| 14304| 1309|
1 parent 808b21e commit 313487b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/Ruby/rails/config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
# "info" includes generic and useful information about system operation, but avoids logging too much
4848
# information to avoid inadvertent exposure of personally identifiable information (PII). If you
4949
# want to log everything, set the level to "debug".
50-
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
50+
config.log_level = :fatal
5151

5252
# Use a different cache store in production.
5353
config.cache_store = :redis_cache_store, {

0 commit comments

Comments
 (0)