Fix log level

This commit is contained in:
Neil Alexander 2021-01-25 13:01:37 +00:00
parent de11c1bc47
commit 3851e9753c
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -424,7 +424,7 @@ func (b *BaseDendrite) SetupAndServeHTTP(
_ = internalServ.Shutdown(ctx) _ = internalServ.Shutdown(ctx)
_ = externalServ.Shutdown(ctx) _ = externalServ.Shutdown(ctx)
logrus.Warnf("Stopped HTTP listeners") logrus.Infof("Stopped HTTP listeners")
} }
func (b *BaseDendrite) WaitForShutdown() { func (b *BaseDendrite) WaitForShutdown() {
@ -433,10 +433,9 @@ func (b *BaseDendrite) WaitForShutdown() {
<-sigs <-sigs
signal.Reset(syscall.SIGINT, syscall.SIGTERM) signal.Reset(syscall.SIGINT, syscall.SIGTERM)
logrus.Warnf("Received shutdown signal") logrus.Warnf("Shutdown signal received")
b.ProcessContext.ShutdownDendrite()
logrus.Warnf("Waiting for components to shutdown") b.ProcessContext.ShutdownDendrite()
b.ProcessContext.WaitForComponentsToFinish() b.ProcessContext.WaitForComponentsToFinish()
logrus.Warnf("Dendrite is exiting now") logrus.Warnf("Dendrite is exiting now")