peer: Fix logging of connected peer.
This commit is contained in:
parent
f3d759d783
commit
1ffc3dc18d
2 changed files with 1 additions and 1 deletions
|
@ -1932,6 +1932,7 @@ func (p *Peer) start() error {
|
||||||
case <-time.After(negotiateTimeout):
|
case <-time.After(negotiateTimeout):
|
||||||
return errors.New("protocol negotiation timeout")
|
return errors.New("protocol negotiation timeout")
|
||||||
}
|
}
|
||||||
|
log.Debugf("Connected to %s", p.Addr())
|
||||||
|
|
||||||
// The protocol has been negotiated successfully so start processing input
|
// The protocol has been negotiated successfully so start processing input
|
||||||
// and output messages.
|
// and output messages.
|
||||||
|
|
|
@ -1670,7 +1670,6 @@ func (s *server) establishConn(sp *serverPeer) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
sp.Connect(conn)
|
sp.Connect(conn)
|
||||||
srvrLog.Debugf("Connected to %s", sp.Addr())
|
|
||||||
s.addrManager.Attempt(sp.NA())
|
s.addrManager.Attempt(sp.NA())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue