]> Cypherpunks.ru repositories - nncp.git/commitdiff
Remove harming errors logging
authorSergey Matveev <stargrave@stargrave.org>
Sun, 17 Jan 2021 16:40:04 +0000 (19:40 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 17 Jan 2021 16:40:05 +0000 (19:40 +0300)
That errors actually won't be the real ones, if various No* flags are
set for skipping some kinds of packets.

src/toss.go

index 8e8dc27789b0e741432be27498433faee69827c8..682c46122331518a4858eb26b9c4fa0204eeea67 100644 (file)
@@ -100,11 +100,9 @@ func (ctx *Ctx) Toss(
                        )
                        job.Fd.Close() // #nosec G104
                        if err != nil {
-                               ctx.LogE("rx", sds, err, "decryption")
                                return pipeW.CloseWithError(err)
                        }
                        if err = pipeWB.Flush(); err != nil {
-                               ctx.LogE("rx", sds, err, "decryption flush")
                                return pipeW.CloseWithError(err)
                        }
                        return pipeW.Close()