mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
d9c0e65cef
* info logs beacon node improvements * prom test fixes * info logging changes * wrapped up node info logging * changed to debug level * warn logs taken care of * Terence suggestion * warn spacing * better logging in initial sync * debug level standardized * complete debug standardization * participation at epoch end * fix archive tests * even more test fixes * prom test * ops test * powtest * rpc sync test * rem part * log formatting
18 lines
475 B
Go
18 lines
475 B
Go
package blockchain
|
|
|
|
import (
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
var log = logrus.WithField("prefix", "blockchain")
|
|
|
|
// logs state transition related data every slot.
|
|
func logStateTransitionData(b *ethpb.BeaconBlock, r []byte) {
|
|
log.WithFields(logrus.Fields{
|
|
"slot": b.Slot,
|
|
"attestations": len(b.Body.Attestations),
|
|
"deposits": len(b.Body.Deposits),
|
|
}).Info("Finished applying state transition")
|
|
}
|