Merge pull request #31690 from olivierlacan/no-verbose-query-logs-in-console

Only enable verbose_query_logs in Rails server
This commit is contained in:
Rafael França 2018-01-24 17:04:31 -05:00 committed by GitHub
commit 554dcc4c6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,6 +59,7 @@ class Railtie < Rails::Railtie # :nodoc:
console = ActiveSupport::Logger.new(STDERR)
Rails.logger.extend ActiveSupport::Logger.broadcast console
end
ActiveRecord::Base.verbose_query_logs = false
end
runner do