提交 983bf6d4 编写于 作者: A Aaron Patterson

restored logging to the log file and display on the console

上级 14d1029a
......@@ -38,7 +38,9 @@ class Railtie < Rails::Railtie
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册