未验证 提交 a8cabf3b 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #31519 from eugeneius/verbose_query_logs_new_framework_defaults

Remove verbose_query_logs from new_framework_defaults_5_2.rb
......@@ -15,11 +15,11 @@
Add `verbose_query_logs` configuration option to display the caller
of database queries in the log to facilitate N+1 query resolution
and other debugging. Excludes Ruby and Rails callers but not gems.
and other debugging.
Enabled in development only for new and upgraded applications. Not
recommended for use in the production environment since it relies
on Ruby's `Kernel#caller` which is fairly slow.
on Ruby's `Kernel#caller_locations` which is fairly slow.
*Olivier Lacan*
......
......@@ -121,8 +121,7 @@ def extract_callstack(callstack)
[
offending_line.path,
offending_line.lineno,
offending_line.label
offending_line.lineno
]
end
......
......@@ -25,6 +25,3 @@
# Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and
# 'f' after migrating old data.
# Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
# Highlight code that triggered database queries in logs.
Rails.application.config.active_record.verbose_query_logs = Rails.env.development?
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册