Skip to content

Commit

Permalink
Merge pull request #5704 from filecoin-project/asr/log-large-delay
Browse files Browse the repository at this point in the history
Log block CID in the large delay warning
  • Loading branch information
magik6k authored Mar 5, 2021
2 parents 046eb28 + 374bd9b commit d53c700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/sub/incoming.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func HandleIncomingBlocks(ctx context.Context, bsub *pubsub.Subscription, s *cha
[]tag.Mutator{tag.Insert(metrics.MinerID, blk.Header.Miner.String())},
metrics.BlockDelay.M(delay),
)
log.Warnf("Received block with large delay %d from miner %s", delay, blk.Header.Miner)
log.Warnw("received block with large delay from miner", "block", blk.Cid(), "delay", delay, "miner", blk.Header.Miner)
}

if s.InformNewBlock(msg.ReceivedFrom, &types.FullBlock{
Expand Down

0 comments on commit d53c700

Please sign in to comment.