Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Mar 11, 2022
1 parent 5715a3f commit c67d4d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/txs_begin_end.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var txsBeginEnd = Migration{
}
if progress != nil {
latestBlock = binary.BigEndian.Uint64(progress)
log.Info("[migration] Continue migration", "from_block", latestBlock)
log.Info("[database version migration] Continue migration", "from_block", latestBlock)
} else {
latestBlock = bodiesProgress + 1 // include block 0
}
Expand All @@ -61,7 +61,7 @@ var txsBeginEnd = Migration{
case <-logEvery.C:
var m runtime.MemStats
runtime.ReadMemStats(&m)
log.Info("[migration] Adding system-txs",
log.Info("[database version migration] Adding system-txs",
"progress", fmt.Sprintf("%.2f%%", 100-100*float64(blockNum)/float64(latestBlock)), "block_num", blockNum,
"alloc", common2.ByteCount(m.Alloc), "sys", common2.ByteCount(m.Sys))
default:
Expand Down

0 comments on commit c67d4d1

Please sign in to comment.