Skip to content

Commit

Permalink
Merge pull request #37729 from anderscarling/patch-1
Browse files Browse the repository at this point in the history
Respect config.log_level in console
  • Loading branch information
kaspth committed Feb 13, 2020
2 parents 7ac5e5e + c756278 commit d632a51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/lib/active_record/railtie.rb
Expand Up @@ -59,6 +59,7 @@ class Railtie < Rails::Railtie # :nodoc:
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
Expand Down

0 comments on commit d632a51

Please sign in to comment.