Report debug of plaintext length
continuous-integration/drone/push Build is pending Details
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
Sarah Jamie Lewis 2021-09-03 12:32:47 -07:00
parent 76175b48a3
commit 19088c1734
2 changed files with 2 additions and 0 deletions

View File

@ -594,6 +594,7 @@ func (e *engine) sendPeerMessage(handle string, message model3.PeerMessage) erro
if ok {
return peerApp.SendMessage(message)
}
log.Errorf("could not send peer message: %v", err)
return fmt.Errorf("could not find peer app to send message to: %v", handle)
}
log.Errorf("could not send peer message: %v", err)

View File

@ -114,6 +114,7 @@ func (pa *PeerApp) SendMessage(message model2.PeerMessage) error {
}
serialized, err := json.Marshal(message)
if err == nil {
log.Debugf("sending plaintext of length %v", len(serialized))
pa.connection.Send(serialized)
return nil
}