Browse Source

[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|
Petrik de Heus 10 months ago
parent
commit
313487b5fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Ruby/rails/config/environments/production.rb

+ 1 - 1
frameworks/Ruby/rails/config/environments/production.rb

@@ -47,7 +47,7 @@ Rails.application.configure do
   # "info" includes generic and useful information about system operation, but avoids logging too much
   # "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
   # information to avoid inadvertent exposure of personally identifiable information (PII). If you
   # want to log everything, set the level to "debug".
   # want to log everything, set the level to "debug".
-  config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
+  config.log_level = :fatal
 
 
   # Use a different cache store in production.
   # Use a different cache store in production.
   config.cache_store = :redis_cache_store, {
   config.cache_store = :redis_cache_store, {