p2p/crypto/secio: dont bother user with mac errs.
Juan Batiz-Benet committed
Feb 2, 2015 at 20:57 UTC
9ba450b425b636a1b9d532ea22de1b7ff16bb789
1 file changed
+1
-1
p2p/crypto/secio/rw.go
+1
-1
@@ -192,7 +192,7 @@ func (r *etmReader) macCheckThenDecrypt(m []byte) (int, error) {
192
193
// check mac. if failed, return error.
194
if !hmac.Equal(macd, expected) {
195
- log.Error("MAC Invalid:", expected, "!=", macd)
195
+ log.Debug("MAC Invalid:", expected, "!=", macd)
196
return 0, ErrMACInvalid
197
}
198