aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railtie.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremykemper@gmail.com>2015-03-11 15:06:42 -0700
committerJeremy Kemper <jeremykemper@gmail.com>2015-03-11 15:06:42 -0700
commitd31c941413ed484762ec819de8f35d413d84a9d6 (patch)
treee6fef1ea76118e6729e925b8ce344c4195a562ce /activerecord/lib/active_record/railtie.rb
parent1b7ae86f262df7d15b57be3b4a4f38680ce37c64 (diff)
downloadrails-d31c941413ed484762ec819de8f35d413d84a9d6.tar.gz
rails-d31c941413ed484762ec819de8f35d413d84a9d6.tar.bz2
rails-d31c941413ed484762ec819de8f35d413d84a9d6.zip
Revert "Merge pull request #15476 from JacobEvelyn/master"
This introduces undesirable `Rails.logger` formatters (such as the syslog formatter) onto a `Logger.new(STDERR)` for the console. The production logger may be going elsewhere than standard io, so we can't presume to reuse its formatter. With syslog, this causes missing newlines in the console, so irb prompts start at the end of the last log message. We can work to expose the console formatter in another way to address the original issue. This reverts commit 026ce5ddf11c4cda0aae7f33a9266e54117db318, reversing changes made to 6f0a69c5899ebdc892e2aa23e68e2604fa70fb73.
Diffstat (limited to 'activerecord/lib/active_record/railtie.rb')
-rw-r--r--activerecord/lib/active_record/railtie.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb
index b6de90e89d..f1bdbc845c 100644
--- a/activerecord/lib/active_record/railtie.rb
+++ b/activerecord/lib/active_record/railtie.rb
@@ -58,9 +58,6 @@ module ActiveRecord
require "active_record/railties/console_sandbox" if app.sandbox?
require "active_record/base"
console = ActiveSupport::Logger.new(STDERR)
- console.formatter = Rails.logger.formatter
- console.level = Rails.logger.level
-
Rails.logger.extend ActiveSupport::Logger.broadcast console
end