Skip to content

Commit

Permalink
fix logformat peer address tendermint#2773
Browse files Browse the repository at this point in the history
  • Loading branch information
u5surf authored and yugo horie committed Nov 8, 2018
1 parent c086d0a commit 7075af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p2p/netaddress.go
Expand Up @@ -176,7 +176,7 @@ func (na *NetAddress) String() string {
if na.str == "" {
addrStr := na.DialString()
if na.ID != "" {
addrStr = IDAddressString(na.ID, addrStr)
addrStr = removeProtocolIfDefined(IDAddressString(na.ID, addrStr))
}
na.str = addrStr
}
Expand Down
2 changes: 1 addition & 1 deletion p2p/switch.go
Expand Up @@ -616,7 +616,7 @@ func (sw *Switch) addPeer(p Peer) error {
return err
}

p.SetLogger(sw.Logger.With("peer", p.NodeInfo().NetAddress().String))
p.SetLogger(sw.Logger.With("peer", p.NodeInfo().NetAddress()))

// All good. Start peer
if sw.IsRunning() {
Expand Down

0 comments on commit 7075af1

Please sign in to comment.