DEV: Turn off ActiveRecord development color and query log by default.

It breaks logster.
This commit is contained in:
Guo Xiang Tan 2020-04-29 14:19:14 +08:00
parent fa21c03a1d
commit a078feee07
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ Discourse::Application.configure do
config.log_level = ENV['DISCOURSE_DEV_LOG_LEVEL'] if ENV['DISCOURSE_DEV_LOG_LEVEL']
if ENV['RAILS_VERBOSE_QUERY_LOGS'] != "0"
if ENV['RAILS_VERBOSE_QUERY_LOGS'] != "1"
config.active_record.verbose_query_logs = true
end
@ -78,7 +78,7 @@ Discourse::Application.configure do
end
config.after_initialize do
if ENV["RAILS_COLORIZE_LOGGING"] != "0"
if ENV["RAILS_COLORIZE_LOGGING"] != "1"
config.colorize_logging = true
end