Skip to content
Extraits de code Groupes Projets
Valider 40bdf432 rédigé par Eugen's avatar Eugen Validation de GitHub
Parcourir les fichiers

Change default log level in production from :debug to :info for less I/O (#1579)

parent 8ead070b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -40,7 +40,7 @@ Rails.application.configure do ...@@ -40,7 +40,7 @@ Rails.application.configure do
# By default, use the lowest log level to ensure availability of diagnostic information # By default, use the lowest log level to ensure availability of diagnostic information
# when problems arise. # when problems arise.
config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'debug').to_sym config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'info').to_sym
# Prepend all log lines with the following tags. # Prepend all log lines with the following tags.
config.log_tags = [:request_id] config.log_tags = [:request_id]
...@@ -64,7 +64,7 @@ Rails.application.configure do ...@@ -64,7 +64,7 @@ Rails.application.configure do
password: ENV.fetch('REDIS_PASSWORD') { false }, password: ENV.fetch('REDIS_PASSWORD') { false },
db: 0, db: 0,
namespace: 'cache', namespace: 'cache',
expires_in: 20.minutes, expires_in: 10.minutes,
} }
# Enable serving of images, stylesheets, and JavaScripts from an asset server. # Enable serving of images, stylesheets, and JavaScripts from an asset server.
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter