From 09cd1175a10ee1425daeb5fa01dd0144cbecb03a Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 27 Feb 2021 21:46:40 +0200 Subject: [PATCH] structured log for beginning of compaction --- chain/store/splitstore/splitstore.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chain/store/splitstore/splitstore.go b/chain/store/splitstore/splitstore.go index c2f6efc79..92d50a925 100644 --- a/chain/store/splitstore/splitstore.go +++ b/chain/store/splitstore/splitstore.go @@ -352,8 +352,7 @@ func (s *SplitStore) compactSimple() { coldEpoch := s.baseEpoch + CompactionCold - log.Infof("running simple compaction; currentEpoch: %d baseEpoch: %d coldEpoch: %d", - curTs.Height(), s.baseEpoch, coldEpoch) + log.Infow("running simple compaction", "currentEpoch", curTs.Height(), "baseEpoch", s.baseEpoch, "coldEpoch", coldEpoch) coldSet, err := s.env.NewLiveSet("cold") if err != nil { @@ -499,8 +498,7 @@ func (s *SplitStore) compactFull() { epoch := curTs.Height() coldEpoch := s.baseEpoch + CompactionCold - log.Infof("running full compaction; currentEpoch: %d baseEpoch: %d coldEpoch: %d", - curTs.Height(), s.baseEpoch, coldEpoch) + log.Infow("running full compaction", "currentEpoch", curTs.Height(), "baseEpoch", s.baseEpoch, "coldEpoch", coldEpoch) // create two live sets, one for marking the cold finality region // and one for marking the hot region