Merge branch 'rails5-verbose-query-logs' into 'master'
Rails5: Enable verbose query logs See merge request gitlab-org/gitlab-ce!21231
This commit is contained in:
commit
46494f46a1
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: other
|
|
@ -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