Skip to content

Commit b19f1ee

Browse files
committed
Revert change of connection ID from int to long.
This is still tracked as an Int32 internally so there seems to be no need to log it as an Int64. Signed-off-by: Bradley Grainger <[email protected]>
1 parent 77ad191 commit b19f1ee

File tree

1 file changed

+2
-2
lines changed
  • src/MySqlConnector/Logging

1 file changed

+2
-2
lines changed

src/MySqlConnector/Logging/Log.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ internal static partial class Log
4747
public static partial void AutoDetectedAurora57(ILogger logger, string sessionId, string hostName);
4848

4949
[LoggerMessage(EventIds.SessionMadeConnection, LogLevel.Debug, "Session {SessionId} made connection; server version {ServerVersion}; connection ID {ConnectionId}; supports: compression {SupportsCompression}, attributes {SupportsAttributes}, deprecate EOF {SupportsDeprecateEof}, cached metadata {SupportsCachedMetadata}, SSL {SupportsSsl}, session track {SupportsSessionTrack}, pipelining {SupportsPipelining}, query attributes {SupportsQueryAttributes}")]
50-
public static partial void SessionMadeConnection(ILogger logger, string sessionId, string serverVersion, long connectionId, bool supportsCompression, bool supportsAttributes, bool supportsDeprecateEof, bool supportsCachedMetadata, bool supportsSsl, bool supportsSessionTrack, bool supportsPipelining, bool supportsQueryAttributes);
50+
public static partial void SessionMadeConnection(ILogger logger, string sessionId, string serverVersion, int connectionId, bool supportsCompression, bool supportsAttributes, bool supportsDeprecateEof, bool supportsCachedMetadata, bool supportsSsl, bool supportsSessionTrack, bool supportsPipelining, bool supportsQueryAttributes);
5151

5252
[LoggerMessage(EventIds.ServerDoesNotSupportSsl, LogLevel.Error, "Session {SessionId} requires SSL but server doesn't support it")]
5353
public static partial void ServerDoesNotSupportSsl(ILogger logger, string sessionId);
@@ -184,7 +184,7 @@ internal static partial class Log
184184
public static partial void DetectedProxy(ILogger logger, string sessionId);
185185

186186
[LoggerMessage(EventIds.ChangingConnectionId, LogLevel.Debug, "Session {SessionId} changing connection id from {OldConnectionId} to {ConnectionId} and server version from {OldServerVersion} to {ServerVersion}")]
187-
public static partial void ChangingConnectionId(ILogger logger, string sessionId, long oldConnectionId, long connectionId, string oldServerVersion, string serverVersion);
187+
public static partial void ChangingConnectionId(ILogger logger, string sessionId, int oldConnectionId, int connectionId, string oldServerVersion, string serverVersion);
188188

189189
[LoggerMessage(EventIds.FailedToGetConnectionId, LogLevel.Information, "Session {SessionId} failed to get CONNECTION_ID(), VERSION()")]
190190
public static partial void FailedToGetConnectionId(ILogger logger, Exception exception, string sessionId);

0 commit comments

Comments
 (0)