Skip to content

Commit 351b17e

Browse files
committed
Fix errors in log messages.
1 parent 3a5059e commit 351b17e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MySqlConnector/Core/ServerSession.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ private async Task InitSslAsync(ProtocolCapabilities serverCapabilities, Connect
779779
}
780780
catch (CryptographicException ex)
781781
{
782-
m_logArguments[1] = cs.CACertificateFile;
782+
m_logArguments[1] = cs.CertificateFile;
783783
Log.Error(ex, "{0} couldn't load certificate from '{1}'", m_logArguments);
784784
if (!File.Exists(cs.CertificateFile))
785785
throw new MySqlException("Cannot find Certificate File", ex);
@@ -808,6 +808,7 @@ private async Task InitSslAsync(ProtocolCapabilities serverCapabilities, Connect
808808
}
809809
catch (CryptographicException ex)
810810
{
811+
m_logArguments[1] = cs.CACertificateFile;
811812
Log.Error(ex, "{0} couldn't load CA certificate from '{1}'", m_logArguments);
812813
if (!File.Exists(cs.CACertificateFile))
813814
throw new MySqlException("Cannot find CA Certificate File", ex);

0 commit comments

Comments
 (0)