diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-10 18:07:02 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-10 18:08:14 -0600 |
commit | 75fa82418d54b36b6092767f2a2b5c1d5324441b (patch) | |
tree | 965aa9dea789dd06576a54e7658a64c4560bad09 /railties/lib | |
parent | 455c7f9e37fda2969e52698b766413fc735eb488 (diff) | |
download | rails-75fa82418d54b36b6092767f2a2b5c1d5324441b.tar.gz rails-75fa82418d54b36b6092767f2a2b5c1d5324441b.tar.bz2 rails-75fa82418d54b36b6092767f2a2b5c1d5324441b.zip |
Prefer Rails.logger over RAILS_DEFAULT_LOGGER
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/runner.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/commands/runner.rb b/railties/lib/commands/runner.rb index 2411c3d270..510128318a 100644 --- a/railties/lib/commands/runner.rb +++ b/railties/lib/commands/runner.rb @@ -48,5 +48,7 @@ begin eval(code_or_file) end ensure - RAILS_DEFAULT_LOGGER.flush if RAILS_DEFAULT_LOGGER + if defined? Rails + Rails.logger.flush if Rails.logger.respond_to?(:flush) + end end |