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

@@ -206,14 +206,13 @@ func NewBreachArbiter(cfg *BreachConfig) *BreachArbiter {
func (b *BreachArbiter) Start() error {
var err error
b.started.Do(func() {
brarLog.Info("Breach arbiter starting")
err = b.start()
})
return err
}
func (b *BreachArbiter) start() error {
brarLog.Tracef("Starting breach arbiter")
// Load all retributions currently persisted in the retribution store.
var breachRetInfos map[wire.OutPoint]retributionInfo
if err := b.cfg.Store.ForAll(func(ret *retributionInfo) error {

View File

@@ -487,7 +487,7 @@ func (c *ChainArbitrator) Start() error {
return nil
}
log.Tracef("Starting ChainArbitrator")
log.Info("ChainArbitrator starting")
// First, we'll fetch all the channels that are still open, in order to
// collect them within our set of active contracts.

View File

@@ -241,7 +241,7 @@ func (u *UtxoNursery) Start() error {
return nil
}
utxnLog.Tracef("Starting UTXO nursery")
utxnLog.Info("UTXO nursery starting")
// Retrieve the currently best known block. This is needed to have the
// state machine catch up with the blocks we missed when we were down.