Skip to content

Commit

Permalink
Don't log error when canceled. Fixes #1544
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger committed Jan 30, 2025
1 parent 3da6f66 commit fc59a06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MySqlConnector/Core/ServerSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,8 @@ await sslStream.AuthenticateAsClientAsync(clientAuthenticationOptions.TargetHost
}
catch (Exception ex)
{
Log.CouldNotInitializeTlsConnection(m_logger, ex, Id);
if (ex is not OperationCanceledException)
Log.CouldNotInitializeTlsConnection(m_logger, ex, Id);
sslStream.Dispose();
ShutdownSocket();
HostName = "";
Expand Down

0 comments on commit fc59a06

Please sign in to comment.