Remove wire logs
the build was successful Details

This commit is contained in:
Sarah Jamie Lewis 2021-01-29 17:39:41 -08:00
parent ddc52c332f
commit bc57ff0b80
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ func (c *connection) Expect() []byte {
n, err := io.ReadFull(c.conn, buffer)
if n != c.MaxLength || err != nil {
log.Debugf("[%v -> %v] Wire Error Reading, Read %d bytes, Error: %v", c.hostname, c.identity.Hostname(), n, err)
//log.Debugf("[%v -> %v] Wire Error Reading, Read %d bytes, Error: %v", c.hostname, c.identity.Hostname(), n, err)
c.conn.Close()
c.closed = true
return []byte{}
@ -207,7 +207,7 @@ func (c *connection) Send(message []byte) {
encrypted := secretbox.Seal(nonce[:], buffer[0:c.MaxLength-40], &nonce, &c.key)
copy(buffer, encrypted[0:c.MaxLength])
}
log.Debugf("[%v -> %v] Wire Send %x", c.identity.Hostname(), c.hostname, buffer)
//log.Debugf("[%v -> %v] Wire Send %x", c.identity.Hostname(), c.hostname, buffer)
_, err := c.conn.Write(buffer)
if err != nil {
c.conn.Close()