Rails5: Enable verbose query logs
This commit is contained in:
parent
79fdfec51f
commit
7f462b630a
2 changed files with 8 additions and 1 deletions
5
changelogs/unreleased/rails5-verbose-query-logs.yml
Normal file
5
changelogs/unreleased/rails5-verbose-query-logs.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: 'Rails5: Enable verbose query logs'
|
||||
merge_request: 21231
|
||||
author: Jasper Maes
|
||||
type: fixed
|
|
@ -47,7 +47,9 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
unless Gitlab.rails5?
|
||||
if Rails.version.start_with?("5.2")
|
||||
raise "Remove this monkey patch: #{__FILE__}"
|
||||
else
|
||||
prepend(VerboseQueryLogs) unless Rails.env.production?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue