From a80e0f5b0dc687d520ef6b26809d6e1473bc992a Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Tue, 6 Oct 2020 10:17:50 -0400 Subject: [PATCH] change error msg --- internal/metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/metrics/metrics.go b/internal/metrics/metrics.go index 23c4448..b51493a 100644 --- a/internal/metrics/metrics.go +++ b/internal/metrics/metrics.go @@ -188,7 +188,7 @@ func TrackError(direction string, e error) (shouldLog bool) { // shouldLog is a errType = errBlobNotFound } else if strings.Contains(err.Error(), "0-byte blob received") { errType = errZeroByteBlob - } else if strings.Contains(err.Error(), "QuicError PROTOCOL_VIOLATION") { + } else if strings.Contains(err.Error(), "PROTOCOL_VIOLATION: tried to retire connection") { errType = errQuicProto } else if strings.Contains(err.Error(), "invalid character") { errType = errInvalidCharacter