Skip to content

Commit e5aa2c3

Browse files
authored
chore: reduce log noise (#2864)
1 parent 9d4c64c commit e5aa2c3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

block/internal/syncing/da_retriever.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@ func (r *DARetriever) processBlobs(ctx context.Context, blobs [][]byte, daHeight
211211
}
212212

213213
events = append(events, event)
214+
}
214215

215-
r.logger.Info().Uint64("height", height).Uint64("da_height", daHeight).Msg("processed block from DA")
216+
if len(events) > 0 {
217+
r.logger.Info().Int("count", len(events)).Uint64("da_height", daHeight).Msg("processed blocks from DA")
216218
}
217219

218220
return events
@@ -249,7 +251,7 @@ func (r *DARetriever) tryDecodeHeader(bz []byte, daHeight uint64) *types.SignedH
249251
headerHash := header.Hash().String()
250252
r.cache.SetHeaderDAIncluded(headerHash, daHeight, header.Height())
251253

252-
r.logger.Info().
254+
r.logger.Debug().
253255
Str("header_hash", headerHash).
254256
Uint64("da_height", daHeight).
255257
Uint64("height", header.Height()).
@@ -280,7 +282,7 @@ func (r *DARetriever) tryDecodeData(bz []byte, daHeight uint64) *types.Data {
280282
dataHash := signedData.Data.DACommitment().String()
281283
r.cache.SetDataDAIncluded(dataHash, daHeight, signedData.Height())
282284

283-
r.logger.Info().
285+
r.logger.Debug().
284286
Str("data_hash", dataHash).
285287
Uint64("da_height", daHeight).
286288
Uint64("height", signedData.Height()).

0 commit comments

Comments
 (0)