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

network, storage: fix usage of base logger #2072

Merged
merged 1 commit into from
Jan 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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