diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-18 05:20:20 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-18 05:20:20 -0800 |
commit | f74afd973dd41dd081978025b96332a5b5cc39b0 (patch) | |
tree | b5c6df9d71e5be0cdc6ae4c0d508b9d7ed2eb5a2 /railties | |
parent | 2f52bd308244b3f6e23ccb7c9a6336529fa9852a (diff) | |
parent | ae7037eba06f248e19dec4bf9583a873d9b6ae22 (diff) | |
download | rails-f74afd973dd41dd081978025b96332a5b5cc39b0.tar.gz rails-f74afd973dd41dd081978025b96332a5b5cc39b0.tar.bz2 rails-f74afd973dd41dd081978025b96332a5b5cc39b0.zip |
Merge pull request #4518 from guilleiguaran/silent-sprockets-logger-3-2-stable
Silent Sprockets logger when config.assets.logger is set to false (3-2-stable)
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/configuring.textile | 3 | ||||
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 9a6f40b9e6..2488f86450 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -156,8 +156,7 @@ Rails 3.1, by default, is set up to use the +sprockets+ gem to manage assets wit * +config.assets.compile+ is a boolean that can be used to turn on live Sprockets compilation in production. -* +config.assets.logger+ accepts a logger conforming to the interface of Log4r or the default Ruby +Logger+ class. Defaults to the same configured at +config.logger+. - +* +config.assets.logger+ accepts a logger conforming to the interface of Log4r or the default Ruby +Logger+ class. Defaults to the same configured at +config.logger+. Setting +config.assets.logger+ to false will turn off served assets logging. h4. Configuring Generators diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index a782441a21..38c9bd7070 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -57,6 +57,7 @@ module Rails @assets.js_compressor = nil @assets.css_compressor = nil @assets.initialize_on_precompile = true + @assets.logger = nil end def compiled_asset_path |