diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-24 13:25:11 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-08-24 13:25:11 -0700 |
commit | 44f07098fe415593e7721afe89e40581d7dc35d3 (patch) | |
tree | f93561658bf5af1fa3f2c32f3ff9ff052fc2e33e /railties/lib/rails/application | |
parent | 2f88743c30ef3dcc7616a6cf18331b84372172b8 (diff) | |
download | rails-44f07098fe415593e7721afe89e40581d7dc35d3.tar.gz rails-44f07098fe415593e7721afe89e40581d7dc35d3.tar.bz2 rails-44f07098fe415593e7721afe89e40581d7dc35d3.zip |
dealing with some -w warnings on startup
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/bootstrap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb index 9f21d273e6..c9b147d075 100644 --- a/railties/lib/rails/application/bootstrap.rb +++ b/railties/lib/rails/application/bootstrap.rb @@ -28,7 +28,7 @@ module Rails logger.level = ActiveSupport::BufferedLogger.const_get(config.log_level.to_s.upcase) logger.auto_flushing = false if Rails.env.production? logger - rescue StandardError => e + rescue StandardError logger = ActiveSupport::BufferedLogger.new(STDERR) logger.level = ActiveSupport::BufferedLogger::WARN logger.warn( |