Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
network, storage: fix usage of base logger
Browse files Browse the repository at this point in the history
  • Loading branch information
acud committed Jan 9, 2020
1 parent b3d0708 commit a02260b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion network/retrieval/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Peer struct {
func NewPeer(peer *network.BzzPeer, baseKey *network.BzzAddr) *Peer {
return &Peer{
BzzPeer: peer,
logger: log.NewBaseAddressLogger("base", baseKey.ShortString(), "peer", peer.BzzAddr.ShortString()),
logger: log.NewBaseAddressLogger(baseKey.ShortString(), "peer", peer.BzzAddr.ShortString()),
retrievals: make(map[uint]chunk.Address),
}
}
Expand Down
2 changes: 1 addition & 1 deletion network/retrieval/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func New(kad *network.Kademlia, ns *storage.NetStore, baseKey *network.BzzAddr,
kademliaLB: network.NewKademliaLoadBalancer(kad, false),
peers: make(map[enode.ID]*Peer),
spec: spec,
logger: log.NewBaseAddressLogger("base", baseKey.ShortString()),
logger: log.NewBaseAddressLogger(baseKey.ShortString()),
quit: make(chan struct{}),
}
if balance != nil && !reflect.ValueOf(balance).IsNil() {
Expand Down
2 changes: 1 addition & 1 deletion network/stream/sync_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func NewSyncProvider(ns *storage.NetStore, kad *network.Kademlia, baseAddr *netw
quit: make(chan struct{}),
cache: c,
setCache: sc,
logger: log.NewBaseAddressLogger("base", baseAddr.ShortString()),
logger: log.NewBaseAddressLogger(baseAddr.ShortString()),
binZeroSem: make(chan struct{}, maxBinZeroSyncPeers),
}
}
Expand Down
2 changes: 1 addition & 1 deletion storage/netstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func NewNetStore(store chunk.Store, baseAddr *network.BzzAddr) *NetStore {
fetchers: fetchers,
Store: store,
LocalID: baseAddr.ID(),
logger: log.NewBaseAddressLogger("base", baseAddr.ShortString()),
logger: log.NewBaseAddressLogger(baseAddr.ShortString()),
}
}

Expand Down

0 comments on commit a02260b

Please sign in to comment.