mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
dcaa388bad
commit
c7562784a3
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ module ActiveRecord
|
|||
require "active_record/base"
|
||||
unless ActiveSupport::Logger.logger_outputs_to?(Rails.logger, STDERR, STDOUT)
|
||||
console = ActiveSupport::Logger.new(STDERR)
|
||||
console.level = Rails.logger.level
|
||||
Rails.logger.extend ActiveSupport::Logger.broadcast console
|
||||
end
|
||||
ActiveRecord::Base.verbose_query_logs = false
|
||||
|
|
Loading…
Reference in a new issue