Skip to content

Commit e926192

Browse files
authored
core/filtermaps: clean up log format of unindexing message (#32123)
Sorry for not fully fixed in #31761, now the log format of unindexing message is cleaned up, to make it consistent with the indexing message.
1 parent 8a9f4bb commit e926192

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/filtermaps/filtermaps.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ func NewFilterMaps(db ethdb.KeyValueStore, initView *ChainView, historyCutoff, f
268268

269269
if f.indexedRange.hasIndexedBlocks() {
270270
log.Info("Initialized log indexer",
271-
"first block", f.indexedRange.blocks.First(), "last block", f.indexedRange.blocks.Last(),
272-
"first map", f.indexedRange.maps.First(), "last map", f.indexedRange.maps.Last(),
273-
"head indexed", f.indexedRange.headIndexed)
271+
"firstblock", f.indexedRange.blocks.First(), "lastblock", f.indexedRange.blocks.Last(),
272+
"firstmap", f.indexedRange.maps.First(), "lastmap", f.indexedRange.maps.Last(),
273+
"headindexed", f.indexedRange.headIndexed)
274274
}
275275
return f
276276
}

core/filtermaps/indexer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ func (f *FilterMaps) tryUnindexTail() (bool, error) {
380380
}
381381
if f.startedTailUnindex && f.indexedRange.hasIndexedBlocks() {
382382
log.Info("Log index tail unindexing finished",
383-
"first block", f.indexedRange.blocks.First(), "last block", f.indexedRange.blocks.Last(),
384-
"removed maps", f.indexedRange.maps.First()-f.ptrTailUnindexMap,
385-
"removed blocks", f.indexedRange.blocks.First()-f.tailPartialBlocks()-f.ptrTailUnindexBlock,
383+
"firstblock", f.indexedRange.blocks.First(), "lastblock", f.indexedRange.blocks.Last(),
384+
"removedmaps", f.indexedRange.maps.First()-f.ptrTailUnindexMap,
385+
"removedblocks", f.indexedRange.blocks.First()-f.tailPartialBlocks()-f.ptrTailUnindexBlock,
386386
"elapsed", common.PrettyDuration(time.Since(f.startedTailUnindexAt)))
387387
f.startedTailUnindex = false
388388
}

0 commit comments

Comments
 (0)