mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Add env in dev to support verbose query log.
This commit is contained in:
@ -39,6 +39,10 @@ Discourse::Application.configure do
|
|||||||
|
|
||||||
config.log_level = ENV['DISCOURSE_DEV_LOG_LEVEL'] if ENV['DISCOURSE_DEV_LOG_LEVEL']
|
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)
|
if defined?(BetterErrors)
|
||||||
BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']
|
BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user