Permalink
Browse files

Merge pull request #4499 from rafaelfranca/patch-1

Add option to configure Sprockets logger
  • Loading branch information...
2 parents 4280b20 + e275817 commit 98081cbe06c389bb022d777ce03a7054061ceca5 @josevalim josevalim 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 98081cb

Please sign in to comment.