From fa0db1950c389fc0453c0be3b7b01146d94ac03e Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Fri, 29 Dec 2023 12:53:11 +0100 Subject: [PATCH] Fix error when TLS is disabled --- network/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/proxy.go b/network/proxy.go index 1828e670..8cfd3735 100644 --- a/network/proxy.go +++ b/network/proxy.go @@ -406,7 +406,7 @@ func (pr *Proxy) PassThroughToServer(conn *ConnWrapper, stack *Stack) *gerr.Gate // so we need to switch to a plaintext connection: // https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-SSL if _, err := conn.Write([]byte{'N'}); err != nil { - pr.logger.Error().Err(err).Msg("Server does not support SSL, but SSL was required by the client") + pr.logger.Warn().Err(err).Msg("Server does not support SSL, but SSL was required by the client") span.RecordError(err) }