peer: Fix logging of connected peer.

This commit is contained in:
Jonathan Gillham 2016-06-24 13:39:50 +01:00
parent f3d759d783
commit 1ffc3dc18d
2 changed files with 1 additions and 1 deletions

View file

@ -1932,6 +1932,7 @@ func (p *Peer) start() error {
case <-time.After(negotiateTimeout):
return errors.New("protocol negotiation timeout")
}
log.Debugf("Connected to %s", p.Addr())
// The protocol has been negotiated successfully so start processing input
// and output messages.

View file

@ -1670,7 +1670,6 @@ func (s *server) establishConn(sp *serverPeer) error {
return err
}
sp.Connect(conn)
srvrLog.Debugf("Connected to %s", sp.Addr())
s.addrManager.Attempt(sp.NA())
return nil
}