multi: add logs when subservers are starting

Also unified the log messages.
This commit is contained in:
yyforyongyu
2022-01-29 22:47:50 +08:00
parent 2891dc7399
commit 1ad6bbfbc2
18 changed files with 20 additions and 15 deletions

View File

@@ -498,14 +498,13 @@ func (d *AuthenticatedGossiper) PropagateChanPolicyUpdate(
func (d *AuthenticatedGossiper) Start() error {
var err error
d.started.Do(func() {
log.Info("Authenticated Gossiper starting")
err = d.start()
})
return err
}
func (d *AuthenticatedGossiper) start() error {
log.Info("Authenticated Gossiper is starting")
// First we register for new notifications of newly discovered blocks.
// We do this immediately so we'll later be able to consume any/all
// blocks which were discovered.