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