A platform for community discussion. Free, open, simple.
DEV: Turn off ActiveRecord development color and query log by default.
Guo Xiang Tana078feee07d1
diff --git a/config/environments/development.rb b/config/environments/development.rbindex 360ae8ae8f2..56bc6aad8b5 100644--- a/config/environments/development.rb+++ b/config/environments/development.rb@@ -39,7 +39,7 @@ Discourse::Application.configure doconfig.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 = trueend@@ -78,7 +78,7 @@ Discourse::Application.configure doendconfig.after_initialize do- if ENV["RAILS_COLORIZE_LOGGING"] != "0"+ if ENV["RAILS_COLORIZE_LOGGING"] != "1"config.colorize_logging = trueend