Skip to content

Commit

Permalink
Merge branch 'errors-debug' into 'main'
Browse files Browse the repository at this point in the history
reduce log level to debug for expected errors

See merge request flarenetwork/flare-system-c-chain-indexer!47
  • Loading branch information
ryanc-flare committed Jul 22, 2024
2 parents 844ebd3 + 8fd892b commit f664235
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion database/history_drop.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func getBlockTimestamp(ctx context.Context, index *big.Int, client ethclient.Cli
},
bOff,
func(err error, d time.Duration) {
logger.Warn("getBlockTimestamp error: %s - retrying after %v", err, d)
logger.Debug("getBlockTimestamp error: %s - retrying after %v", err, d)
},
)

Expand Down
2 changes: 1 addition & 1 deletion indexer/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (ci *BlockIndexer) fetchBlock(ctx context.Context, index *uint64) (block *t
},
bOff,
func(err error, d time.Duration) {
logger.Warn("BlockByNumber error: %s. Will retry after %s", err, d)
logger.Debug("BlockByNumber error: %s. Will retry after %s", err, d)
},
)

Expand Down
2 changes: 1 addition & 1 deletion indexer/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (ci *BlockIndexer) fetchLogsChunk(
},
bOff,
func(err error, d time.Duration) {
logger.Warn("FilterLogs error: %s. Will retry after %s", err, d)
logger.Debug("FilterLogs error: %s. Will retry after %s", err, d)
},
)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion indexer/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (ci *BlockIndexer) getTransactionsReceipt(
},
bOff,
func(err error, d time.Duration) {
logger.Warn("TransactionReceipt error: %s. Will retry after %s", err, d)
logger.Debug("TransactionReceipt error: %s. Will retry after %s", err, d)
},
)

Expand Down

0 comments on commit f664235

Please sign in to comment.