From c67d4d14e87efdfa240b213bf8a641ffa83c7497 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 11 Mar 2022 13:56:10 +0700 Subject: [PATCH] better logging --- migrations/txs_begin_end.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/txs_begin_end.go b/migrations/txs_begin_end.go index f675e5e0e..713c60322 100644 --- a/migrations/txs_begin_end.go +++ b/migrations/txs_begin_end.go @@ -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 } @@ -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: