Skip to content

Commit f7f3aa2

Browse files
committed
clean up log format of unindexing message
1 parent 5b8a22a commit f7f3aa2

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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 ctxcdb.KeyValueStore, initView *ChainView, historyCutoff,
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)