Powchain: Minor fix for log statement (#7728)

* Minor fix for log statement

* Update beacon-chain/powchain/service.go
This commit is contained in:
Preston Van Loon 2020-11-04 16:10:37 -08:00 committed by GitHub
parent c5a8363998
commit d2694ee198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -744,10 +744,14 @@ func (s *Service) logTillChainStart() {
secondsLeft = params.BeaconConfig().MinGenesisTime - genesisTime
}
log.WithFields(logrus.Fields{
"Extra validators needed": valNeeded,
"Generating genesis state in ": time.Duration(secondsLeft) * time.Second,
}).Infof("Currently waiting for chainstart")
fields := logrus.Fields{
"Additional validators needed": valNeeded,
}
if secondsLeft > 0 {
fields["Generating genesis state in"] = time.Duration(secondsLeft) * time.Second
}
log.WithFields(fields).Info("Currently waiting for chainstart")
}
// cacheHeadersForEth1DataVote makes sure that voting for eth1data after startup utilizes cached headers