Skip to content

Commit 3a803c2

Browse files
committed
Merge branch 'ryan/downgrade-history-drop-log' into 'main'
downgrade history drop log from warn to debug See merge request flarenetwork/FSP/flare-system-c-chain-indexer!70
2 parents 30f5177 + fe0cebf commit 3a803c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/history_drop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func getNearestBlockByTimestamp(
156156
// If that fails, we fall back to doing a binary search on the chain.
157157
blockNumber, err := getNearestBlockByTimestampFromDB(ctx, timestamp, db)
158158
if err != nil {
159-
logger.Warn("failed to get the nearest block by timestamp from DB: %s", err)
159+
logger.Debug("failed to get the nearest block by timestamp from DB, will fall back to RPC binary search. err: %s", err)
160160
}
161161

162162
// A blocknumber of 0 means that no block was found in the DB.

0 commit comments

Comments
 (0)