A platform for community discussion. Free, open, simple.
DEV: Support custom log level in dev
Penar Musaraj78969d77199f
diff --git a/config/environments/development.rb b/config/environments/development.rbindex 473347772f7..55a8f8e6c93 100644--- a/config/environments/development.rb+++ b/config/environments/development.rb@@ -1,7 +1,6 @@# frozen_string_literal: trueDiscourse::Application.configure do-# Settings specified here will take precedence over those in config/application.rb# In the development environment your application's code is reloaded on@@ -38,6 +37,8 @@ Discourse::Application.configure doconfig.action_mailer.raise_delivery_errors = true+ config.log_level = ENV['DISCOURSE_DEV_LOG_LEVEL'] if ENV['DISCOURSE_DEV_LOG_LEVEL']+BetterErrors::Middleware.allow_ip! ENV['TRUSTED_IP'] if ENV['TRUSTED_IP']if defined?(Unicorn) && ENV["UNICORN_WORKERS"].to_i != 1