Add a warning at every startup just to be extra annoying

This commit is contained in:
Neil Alexander 2022-04-28 17:07:36 +01:00
parent c4ba81a3d4
commit 617ec2098e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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")