From 48aaf8b061c07036901a9482b050c646533eed41 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Mon, 15 Jul 2013 14:47:17 -0500 Subject: [PATCH] * suppressing the reams of asset logging in development --- Gemfile | 2 ++ config/environments/development.rb | 2 +- config/logging.rb | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index a0acfc326..a91475a7c 100644 --- a/Gemfile +++ b/Gemfile @@ -54,6 +54,8 @@ gem 'postgres-copy' # gem 'libv8', "~> 3.11.8" #end +gem 'quiet_assets', :group => :development + group :development, :test do gem 'rspec-rails' gem 'guard-rspec', '0.5.5' diff --git a/config/environments/development.rb b/config/environments/development.rb index ca5d2dd88..1d15d9669 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -33,7 +33,7 @@ SampleApp::Application.configure do config.assets.compress = false # Expands the lines which load the assets - config.assets.debug = true + config.assets.debug = false # Set the logging destination(s) config.log_to = %w[stdout file] diff --git a/config/logging.rb b/config/logging.rb index 42cb34eff..961981c43 100644 --- a/config/logging.rb +++ b/config/logging.rb @@ -101,6 +101,10 @@ Logging::Rails.configure do |config| # the file descriptors after forking ensures that each worker has a unique # file descriptor. # + + Logging.logger['ActiveSupport::Cache::FileStore'].level = :info + Logging.logger['ActiveSupport::OrderedOptions'].level = :warn + if defined?(PhusionPassenger) PhusionPassenger.on_event(:starting_worker_process) do |forked| Logging.reopen if forked