diff --git a/config/environments/development.rb b/config/environments/development.rb index 473347772f7..55a8f8e6c93 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true Discourse::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 do config.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