diff --git a/config/environments/production.rb b/config/environments/production.rb index 634bd4a48..5175c8719 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,7 +46,7 @@ Rails.application.configure do # config.force_ssl = true # Set to :debug to see everything in the log. - config.log_level = Rails.application.secrets.log_level || :debug + config.log_level = Rails.application.secrets.log_level.blank? ? :debug : Rails.application.secrets.log_level # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ] diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 71a8ceeb6..067ea2d1d 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -46,7 +46,7 @@ Rails.application.configure do # config.force_ssl = true # Set to :debug to see everything in the log. - config.log_level = Rails.application.secrets.log_level || :debug + config.log_level = Rails.application.secrets.log_level.blank? ? :debug : Rails.application.secrets.log_level # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ] diff --git a/config/environments/test.rb b/config/environments/test.rb index c4634c92c..23135c381 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -41,5 +41,5 @@ Rails.application.configure do config.active_support.test_order = :random - config.log_level = Rails.application.secrets.log_level || :debug + config.log_level = Rails.application.secrets.log_level.blank? ? :debug : Rails.application.secrets.log_level end