1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

restored logging to the log file and display on the console

This commit is contained in:
Aaron Patterson 2012-01-20 11:56:38 -08:00
parent 14d1029aa3
commit 983bf6d456

View file

@ -38,7 +38,9 @@ module ActiveRecord
# first time. Also, make it output to STDERR.
console do |app|
require "active_record/railties/console_sandbox" if app.sandbox?
ActiveRecord::Base.logger = ActiveSupport::Logger.new(STDERR)
console = ActiveSupport::Logger.new(STDERR)
logger = ActiveSupport::BroadcastLogger.new [Rails.logger, console]
ActiveRecord::Base.logger = logger
end
initializer "active_record.initialize_timezone" do