mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-21 14:10:35 +02:00
multi: enhance logging for debugging peer connection
This commit is contained in:
@@ -479,7 +479,8 @@ func (p *Brontide) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
peerLog.Tracef("Peer %v starting", p)
|
||||
peerLog.Tracef("Peer %v starting with conn[%v->%v]", p,
|
||||
p.cfg.Conn.LocalAddr(), p.cfg.Conn.RemoteAddr())
|
||||
|
||||
// Fetch and then load all the active channels we have with this remote
|
||||
// peer from the database.
|
||||
|
@@ -521,3 +521,11 @@ func (m *mockMessageConn) ReadNextHeader() (uint32, error) {
|
||||
func (m *mockMessageConn) ReadNextBody(buf []byte) ([]byte, error) {
|
||||
return m.curReadMessage, nil
|
||||
}
|
||||
|
||||
func (m *mockMessageConn) RemoteAddr() net.Addr {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *mockMessageConn) LocalAddr() net.Addr {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user