* suppressing the reams of asset logging in development
This commit is contained in:
parent
e6e99c8829
commit
48aaf8b061
2
Gemfile
2
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'
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue