mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
eth/filter: downgrade log level (#31450)
This commit is contained in:
parent
8fe09df54f
commit
624a5d8b23
1 changed files with 2 additions and 2 deletions
|
|
@ -372,7 +372,7 @@ func (f *Filter) indexedLogs(ctx context.Context, mb filtermaps.MatcherBackend,
|
||||||
// iteration and bloom matching.
|
// iteration and bloom matching.
|
||||||
func (f *Filter) unindexedLogs(ctx context.Context, begin, end uint64) ([]*types.Log, error) {
|
func (f *Filter) unindexedLogs(ctx context.Context, begin, end uint64) ([]*types.Log, error) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
log.Warn("Performing unindexed log search", "begin", begin, "end", end)
|
log.Debug("Performing unindexed log search", "begin", begin, "end", end)
|
||||||
var matches []*types.Log
|
var matches []*types.Log
|
||||||
for blockNumber := begin; blockNumber <= end; blockNumber++ {
|
for blockNumber := begin; blockNumber <= end; blockNumber++ {
|
||||||
select {
|
select {
|
||||||
|
|
@ -390,7 +390,7 @@ func (f *Filter) unindexedLogs(ctx context.Context, begin, end uint64) ([]*types
|
||||||
}
|
}
|
||||||
matches = append(matches, found...)
|
matches = append(matches, found...)
|
||||||
}
|
}
|
||||||
log.Trace("Performed unindexed log search", "begin", begin, "end", end, "matches", len(matches), "elapsed", common.PrettyDuration(time.Since(start)))
|
log.Debug("Performed unindexed log search", "begin", begin, "end", end, "matches", len(matches), "elapsed", common.PrettyDuration(time.Since(start)))
|
||||||
return matches, nil
|
return matches, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue