mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 01:34:01 +00:00
Fix mysql log spam (#8654)
This commit is contained in:
parent
eda668c30d
commit
13a69d4eab
|
@ -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.")
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue