Commit ef72a476 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c4ba3f34
......@@ -210,6 +210,11 @@ func (nl *NodeLink) recvPkt() (*PktBuf, error) {
}
}
if true {
// XXX -> log
fmt.Printf("%v < %v: %v\n", nl.peerLink.LocalAddr(), nl.peerLink.RemoteAddr(), pkt)
}
return pkt, nil
}
......
......@@ -64,6 +64,6 @@ func (pkt *PktBuf) String() string {
s += fmt.Sprintf(" #%d | ", ntoh32(h.Len))
s += fmt.Sprintf("% x\n", pkt.Payload()) // XXX better decode
s += fmt.Sprintf("% x", pkt.Payload()) // XXX better decode
return s
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment