Merge pull request #435 from ethersphere/remove_error_log

swarm/storage: remove log for evict outgoing request
This commit is contained in:
Anton Evangelatov 2018-04-25 16:40:00 +02:00 committed by GitHub
commit eefece8a1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,6 @@ package storage
import ( import (
"sync" "sync"
"github.com/ethereum/go-ethereum/log"
lru "github.com/hashicorp/golang-lru" lru "github.com/hashicorp/golang-lru"
) )
@ -55,7 +54,8 @@ func NewMemStore(params *StoreParams, _ *LDBStore) (m *MemStore) {
} }
requestEvicted := func(key interface{}, value interface{}) { requestEvicted := func(key interface{}, value interface{}) {
log.Error("evict called on outgoing request") // temporary remove of the error log, until we figure out the problem, as it is too spamy
//log.Error("evict called on outgoing request")
} }
r, err := lru.NewWithEvict(int(params.ChunkRequestsCacheCapacity), requestEvicted) r, err := lru.NewWithEvict(int(params.ChunkRequestsCacheCapacity), requestEvicted)
if err != nil { if err != nil {