Fix mysql log spam (#8654)

This commit is contained in:
Roman Tkachenko 2021-10-19 13:44:48 -07:00 committed by GitHub
parent eda668c30d
commit 13a69d4eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ func (s *ProxyServer) ServeMySQL(listener net.Listener) error {
go func() {
defer clientConn.Close()
err := s.MySQLProxy().HandleConnection(s.closeCtx, clientConn)
if err != nil {
if err != nil && !utils.IsOKNetworkError(err) {
s.log.WithError(err).Error("Failed to handle MySQL client connection.")
}
}()