Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7f462b63
Commit
7f462b63
authored
Aug 16, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5: Enable verbose query logs
parent
79fdfec5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
changelogs/unreleased/rails5-verbose-query-logs.yml
changelogs/unreleased/rails5-verbose-query-logs.yml
+5
-0
config/initializers/active_record_verbose_query_logs.rb
config/initializers/active_record_verbose_query_logs.rb
+3
-1
No files found.
changelogs/unreleased/rails5-verbose-query-logs.yml
0 → 100644
View file @
7f462b63
---
title
:
'
Rails5:
Enable
verbose
query
logs'
merge_request
:
21231
author
:
Jasper Maes
type
:
fixed
config/initializers/active_record_verbose_query_logs.rb
View file @
7f462b63
...
@@ -47,7 +47,9 @@ module ActiveRecord
...
@@ -47,7 +47,9 @@ module ActiveRecord
end
end
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?
prepend
(
VerboseQueryLogs
)
unless
Rails
.
env
.
production?
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment