From fdce8c604a4cf26e25c3ff5da331002c1c6503b9 Mon Sep 17 00:00:00 2001 From: Romain Date: Tue, 12 Nov 2024 17:34:04 +0100 Subject: [PATCH] Change level of peeking first byte error log to DEBUG for Postgres --- pkg/server/router/tcp/postgres.go | 2 +- pkg/server/router/tcp/router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/server/router/tcp/postgres.go b/pkg/server/router/tcp/postgres.go index 99a658c0e..5d773704f 100644 --- a/pkg/server/router/tcp/postgres.go +++ b/pkg/server/router/tcp/postgres.go @@ -29,7 +29,7 @@ func isPostgres(br *bufio.Reader) (bool, error) { if err != nil { var opErr *net.OpError if !errors.Is(err, io.EOF) && (!errors.As(err, &opErr) || !opErr.Timeout()) { - log.Error().Err(err).Msg("Error while Peeking first byte") + log.Debug().Err(err).Msg("Error while peeking first bytes") } return false, err } diff --git a/pkg/server/router/tcp/router.go b/pkg/server/router/tcp/router.go index 9356e0d69..0f5c8f843 100644 --- a/pkg/server/router/tcp/router.go +++ b/pkg/server/router/tcp/router.go @@ -364,7 +364,7 @@ func clientHelloInfo(br *bufio.Reader) (*clientHello, error) { if err != nil { var opErr *net.OpError if !errors.Is(err, io.EOF) && (!errors.As(err, &opErr) || !opErr.Timeout()) { - log.Debug().Err(err).Msg("Error while Peeking first byte") + log.Debug().Err(err).Msg("Error while peeking first byte") } return nil, err }