swarm: remove spamy logs

This commit is contained in:
Anton Evangelatov 2018-04-22 13:42:09 +02:00
parent 426bc4f26b
commit b775c55622
3 changed files with 3 additions and 5 deletions

View file

@ -120,7 +120,7 @@ func (p *Peer) SendOfferedHashes(s *server, f, t uint64) error {
To: to, To: to,
Stream: s.stream, Stream: s.stream,
} }
log.Trace("Swarm syncer offer batch", "peer", p.ID(), "stream", s.stream, "len", len(hashes), "from", from, "to", to) //log.Trace("Swarm syncer offer batch", "peer", p.ID(), "stream", s.stream, "len", len(hashes), "from", from, "to", to)
return p.SendPriority(msg, s.priority) return p.SendPriority(msg, s.priority)
} }

View file

@ -21,7 +21,6 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/swarm/storage" "github.com/ethereum/go-ethereum/swarm/storage"
) )
@ -130,7 +129,7 @@ func (s *SwarmSyncerServer) SetNextBatch(from, to uint64) ([]byte, uint64, uint6
ticker.Stop() ticker.Stop()
} }
log.Debug("Swarm syncer offer batch", "po", s.po, "len", i, "from", from, "to", to, "current store count", s.db.CurrentBucketStorageIndex(s.po)) //log.Debug("Swarm syncer offer batch", "po", s.po, "len", i, "from", from, "to", to, "current store count", s.db.CurrentBucketStorageIndex(s.po))
return batch, from, to, nil, nil return batch, from, to, nil, nil
} }

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,7 @@ 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") //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 {