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

@@ -132,6 +132,7 @@ func NewOnionProcessor(router *sphinx.Router) *OnionProcessor {
// Start spins up the onion processor's sphinx router.
func (p *OnionProcessor) Start() error {
log.Info("Onion processor starting")
return p.router.Start()
}

View File

@@ -81,7 +81,7 @@ func NewHtlcNotifier(now func() time.Time) *HtlcNotifier {
func (h *HtlcNotifier) Start() error {
var err error
h.started.Do(func() {
log.Trace("HtlcNotifier starting")
log.Info("HtlcNotifier starting")
err = h.ntfnServer.Start()
})
return err

View File

@@ -1846,7 +1846,7 @@ func (s *Switch) Start() error {
return errors.New("htlc switch already started")
}
log.Infof("Starting HTLC Switch")
log.Infof("HTLC Switch starting")
blockEpochStream, err := s.cfg.Notifier.RegisterBlockEpochNtfn(nil)
if err != nil {