Permalink
Browse files

Add option to configure Sprockets logger

  • Loading branch information...
1 parent 4280b20 commit e275817116122893195579904e2f518b6125464f @rafaelfranca rafaelfranca committed Jan 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/sprockets/railtie.rb
View
2 actionpack/lib/sprockets/railtie.rb
@@ -21,7 +21,7 @@ class Railtie < ::Rails::Railtie
require 'sprockets'
app.assets = Sprockets::Environment.new(app.root.to_s) do |env|
- env.logger = ::Rails.logger
+ env.logger = config.assets.logger || ::Rails.logger
env.version = ::Rails.env + "-#{config.assets.version}"
if config.assets.cache_store != false

0 comments on commit e275817

Please sign in to comment.