From 50d82e928a559278864977fe237d1d58cb8f8c10 Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Fri, 30 Aug 2024 13:15:12 +0200 Subject: [PATCH] remove redundant logs --- block/pruning.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/block/pruning.go b/block/pruning.go index 7fa49cae8..dd7857eae 100644 --- a/block/pruning.go +++ b/block/pruning.go @@ -9,7 +9,6 @@ import ( func (m *Manager) PruneBlocks(retainHeight uint64) error { if m.IsProposer() && m.NextHeightToSubmit() < retainHeight { // do not delete anything that we might submit in future - m.logger.Error("skipping block pruning. next height to submit is previous to retain_height.", "retain_height", retainHeight, "next_submit_height", m.NextHeightToSubmit()) return fmt.Errorf("skipping block pruning. next height to submit is previous to retain_height.t %d: next height to submit: %d: %w", retainHeight, m.NextHeightToSubmit(), @@ -24,7 +23,6 @@ func (m *Manager) PruneBlocks(retainHeight uint64) error { pruned, err := m.Store.PruneBlocks(m.State.BaseHeight, retainHeight) if err != nil { - m.logger.Error("pruning dymint store", "retain_height", retainHeight, "err", err) return fmt.Errorf("pruning dymint store: %w", err) } @@ -33,8 +31,7 @@ func (m *Manager) PruneBlocks(retainHeight uint64) error { m.State.BaseHeight = retainHeight _, err = m.Store.SaveState(m.State, nil) if err != nil { - m.logger.Error("saving state.", "retain_height", retainHeight, "err", err) - return fmt.Errorf("save state: %w", err) + return fmt.Errorf("saving state: %w", err) } m.logger.Info("pruned blocks", "pruned", pruned, "retain_height", retainHeight)