Downgrade messages to Debug (#3139)

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
ledgerwatch 2021-12-16 23:39:06 +00:00 committed by GitHub
parent feb79883ac
commit 3ac87a07d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,11 +120,8 @@ func RecvUploadMessage(ctx context.Context,
return
}
if err = handleInboundMessage(ctx, req, sentry); err != nil {
if rlp.IsDecodeError(err) {
log.Debug("[RecvUploadMessage]: Handling incoming message", "error", err)
} else {
log.Warn("[RecvUploadMessage]: Handling incoming message", "error", err)
}
log.Debug("[RecvUploadMessage]: Handling incoming message", "error", err)
}
if wg != nil {
wg.Done()
@ -211,11 +208,7 @@ func RecvUploadHeadersMessage(ctx context.Context,
return
}
if err = handleInboundMessage(ctx, req, sentry); err != nil {
if rlp.IsDecodeError(err) {
log.Debug("[RecvUploadHeadersMessage] Handling incoming message", "error", err)
} else {
log.Warn("[RecvUploadHeadersMessage] Handling incoming message", "error", err)
}
log.Debug("[RecvUploadHeadersMessage] Handling incoming message", "error", err)
}
if wg != nil {
wg.Done()