Debugging value gettings
This commit is contained in:
parent
19088c1734
commit
1938f14837
|
@ -94,6 +94,8 @@ func (pa *PeerApp) listen() {
|
||||||
reqStr := []byte(req.(string))
|
reqStr := []byte(req.(string))
|
||||||
pa.RetValHandler(pa.connection.Hostname(), reqStr, peerMessage.Data)
|
pa.RetValHandler(pa.connection.Hostname(), reqStr, peerMessage.Data)
|
||||||
pa.getValRequests.Delete(peerMessage.ID)
|
pa.getValRequests.Delete(peerMessage.ID)
|
||||||
|
} else {
|
||||||
|
log.Errorf("could not find val request for %v", peerMessage.ID)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if pa.IsAllowed(pa.connection.Hostname()) {
|
if pa.IsAllowed(pa.connection.Hostname()) {
|
||||||
|
@ -114,7 +116,7 @@ func (pa *PeerApp) SendMessage(message model2.PeerMessage) error {
|
||||||
}
|
}
|
||||||
serialized, err := json.Marshal(message)
|
serialized, err := json.Marshal(message)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
log.Debugf("sending plaintext of length %v", len(serialized))
|
//log.Debugf("sending plaintext of length %v", len(serialized))
|
||||||
pa.connection.Send(serialized)
|
pa.connection.Send(serialized)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue