From 433ae0081822683a599224e37435838e0fa24c2e Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 18 Mar 2020 12:32:24 +0100 Subject: [PATCH] Ensure :info log level is set in Rails 4 --- config/environments/production.rb | 4 ++-- config/environments/staging.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 22950996c2..9c61ebaab0 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -35,8 +35,8 @@ Openfoodnetwork::Application.configure do # Use https in email links config.action_mailer.default_url_options = { protocol: 'https' } - # Note: This config no longer works with our new logging strategy - # config.log_level = :debug + # Set log level (default is :debug in Rails 4) + config.log_level = :info # Configure logging: config.log_formatter = Logger::Formatter.new.tap { |f| f.datetime_format = "%Y-%m-%d %H:%M:%S" } diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 22950996c2..9c61ebaab0 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -35,8 +35,8 @@ Openfoodnetwork::Application.configure do # Use https in email links config.action_mailer.default_url_options = { protocol: 'https' } - # Note: This config no longer works with our new logging strategy - # config.log_level = :debug + # Set log level (default is :debug in Rails 4) + config.log_level = :info # Configure logging: config.log_formatter = Logger::Formatter.new.tap { |f| f.datetime_format = "%Y-%m-%d %H:%M:%S" }