From 617ec2098e25fe3c50f00475dc4ff5b992622eee Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 28 Apr 2022 17:07:36 +0100 Subject: [PATCH] Add a warning at every startup just to be extra annoying --- setup/base/base.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/base/base.go b/setup/base/base.go index 7091c6ba5..4b771aa36 100644 --- a/setup/base/base.go +++ b/setup/base/base.go @@ -126,6 +126,10 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, options ...Base logrus.Infof("Dendrite version %s", internal.VersionString()) + if !cfg.ClientAPI.RegistrationDisabled && cfg.ClientAPI.OpenRegistrationWithoutVerificationEnabled { + logrus.Warn("Open registration is enabled") + } + closer, err := cfg.SetupTracing("Dendrite" + componentName) if err != nil { logrus.WithError(err).Panicf("failed to start opentracing")