Skip to content

Commit

Permalink
log head for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 27, 2023
1 parent 6db2b20 commit 925e38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer/epoch_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ func (client *IndexerClient) ensureEpochStats(epoch uint64, head []byte) error {

epochStats, isNewStats := client.indexerCache.createOrGetEpochStats(epoch, dependentRoot)
if isNewStats {
logger.WithField("client", client.clientName).Infof("load epoch stats for epoch %v (dependend: 0x%x)", epoch, dependentRoot)
logger.WithField("client", client.clientName).Infof("load epoch stats for epoch %v (dependend: 0x%x, head: 0x%x)", epoch, dependentRoot, head)
} else {
logger.WithField("client", client.clientName).Debugf("ensure epoch stats for epoch %v (dependend: 0x%x)", epoch, dependentRoot)
logger.WithField("client", client.clientName).Debugf("ensure epoch stats for epoch %v (dependend: 0x%x, head: 0x%x)", epoch, dependentRoot, head)
}
go epochStats.ensureEpochStatsLazy(client, proposerRsp)
if int64(epoch) > client.lastEpochStats {
Expand Down

0 comments on commit 925e38d

Please sign in to comment.