From 925e38d63864d4dea4d054908d5c50ca6daef6ec Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 27 Aug 2023 09:33:16 +0200 Subject: [PATCH] log head for debugging --- indexer/epoch_stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer/epoch_stats.go b/indexer/epoch_stats.go index a693aa86..883eff9f 100644 --- a/indexer/epoch_stats.go +++ b/indexer/epoch_stats.go @@ -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 {