From b885056ce3b805569a1f05df9f0170c03386907b Mon Sep 17 00:00:00 2001 From: asideofcode-dev <133222359+asideofcode-dev@users.noreply.github.com> Date: Fri, 11 Aug 2023 22:18:06 +0100 Subject: [PATCH] Customisable log level in production.rb --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index f5bf904dc..92b00c1ec 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,7 +46,7 @@ # Use the lowest log level to ensure availability of diagnostic information # when problems arise. - config.log_level = :info + config.log_level = ENV.fetch("RAILS_LOG_LEVEL") { "info" } # Prepend all log lines with the following tags. config.log_tags = [ :request_id ]