mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
DEV: Add env in dev to support verbose query log.
This commit is contained in:
parent
24b9759c60
commit
5503eba924
|
@ -39,6 +39,10 @@ Discourse::Application.configure do
|
|||
|
||||
config.log_level = ENV['DISCOURSE_DEV_LOG_LEVEL'] if ENV['DISCOURSE_DEV_LOG_LEVEL']
|
||||
|
||||
if ENV['RAILS_VERBOSE_QUERY_LOGS']
|
||||
config.active_record.verbose_query_logs = true
|
||||
end
|
||||
|
||||
if defined?(BetterErrors)
|
||||
BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user