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:
parent
14d1029aa3
commit
983bf6d456
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue