mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #37729 from anderscarling/patch-1
Respect config.log_level in console
This commit is contained in:
commit
d632a51bfd
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