diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-01-24 17:04:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 17:04:31 -0500 |
commit | 554dcc4c6ec3339507e9b05235c417e0ed00e1c4 (patch) | |
tree | ed03058a5a9688c1462d34a7714049a9884d46b4 /activerecord | |
parent | f03889136adc01c202b17a14562fbd9a72db9997 (diff) | |
parent | 1044e8b355930e8cb14d1f182d33a561fdaca65b (diff) | |
download | rails-554dcc4c6ec3339507e9b05235c417e0ed00e1c4.tar.gz rails-554dcc4c6ec3339507e9b05235c417e0ed00e1c4.tar.bz2 rails-554dcc4c6ec3339507e9b05235c417e0ed00e1c4.zip |
Merge pull request #31690 from olivierlacan/no-verbose-query-logs-in-console
Only enable verbose_query_logs in Rails server
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index 7b4b59ac4b..ade5946dd5 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -59,6 +59,7 @@ module ActiveRecord console = ActiveSupport::Logger.new(STDERR) Rails.logger.extend ActiveSupport::Logger.broadcast console end + ActiveRecord::Base.verbose_query_logs = false end runner do |