diff --git a/config/environments/production.rb b/config/environments/production.rb index 7d30863699..94b9418463 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -38,6 +38,7 @@ Openfoodnetwork::Application.configure do # Configure logging for Rails 3.2: config.logger = ActiveSupport::TaggedLogging.new(Logger.new(Rails.root.join("log", "#{Rails.env}.log"))) + config.logger.level = Logger::INFO config.logger.formatter = Logger::Formatter.new config.logger.datetime_format = "%Y-%m-%d %H:%M:%S" # Once we get to Rails 4.0, we can replace the above with: diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 7d30863699..94b9418463 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -38,6 +38,7 @@ Openfoodnetwork::Application.configure do # Configure logging for Rails 3.2: config.logger = ActiveSupport::TaggedLogging.new(Logger.new(Rails.root.join("log", "#{Rails.env}.log"))) + config.logger.level = Logger::INFO config.logger.formatter = Logger::Formatter.new config.logger.datetime_format = "%Y-%m-%d %H:%M:%S" # Once we get to Rails 4.0, we can replace the above with: