You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MySqlConnector/Core/ServerSession.cs
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ public bool TryStartCancel(ICancellableCommand command)
111
111
m_state=State.CancelingQuery;
112
112
}
113
113
114
-
Log.Info("Session{0} will cancel CommandId: {1} (CancelledAttempts={2}) CommandText: {3}",m_logArguments[0],command.CommandId,command.CancelAttemptCount,(commandasMySqlCommand)?.CommandText);
114
+
Log.Debug("Session{0} will cancel CommandId: {1} (CancelledAttempts={2}) CommandText: {3}",m_logArguments[0],command.CommandId,command.CancelAttemptCount,(commandasMySqlCommand)?.CommandText);
115
115
returntrue;
116
116
}
117
117
@@ -122,7 +122,7 @@ public void DoCancel(ICancellableCommand commandToCancel, MySqlCommand killComma
122
122
{
123
123
if(ActiveCommandId!=commandToCancel.CommandId)
124
124
{
125
-
Log.Info("Session{0} ActiveCommandId {1} is not the CommandId {2} being canceled; ignoring cancellation.",m_logArguments[0],ActiveCommandId,commandToCancel.CommandId);
125
+
Log.Debug("Session{0} ActiveCommandId {1} is not the CommandId {2} being canceled; ignoring cancellation.",m_logArguments[0],ActiveCommandId,commandToCancel.CommandId);
126
126
return;
127
127
}
128
128
@@ -132,7 +132,7 @@ public void DoCancel(ICancellableCommand commandToCancel, MySqlCommand killComma
132
132
// command would be killed (because "KILL QUERY" specifies the connection whose command should be killed, not
133
133
// a unique identifier of the command itself). As a mitigation, we set the CommandTimeout to a low value to avoid
134
134
// blocking the other thread for an extended duration.
135
-
Log.Info("Session{0} canceling CommandId {1} with CommandText {2}",killCommand.Connection!.Session.Id,commandToCancel.CommandId,killCommand.CommandText);
135
+
Log.Debug("Session{0} canceling CommandId {1} with CommandText {2}",killCommand.Connection!.Session.Id,commandToCancel.CommandId,killCommand.CommandText);
136
136
killCommand.ExecuteNonQuery();
137
137
}
138
138
}
@@ -312,7 +312,7 @@ public void FinishQuerying()
312
312
// KILL QUERY will kill a subsequent query if the command it was intended to cancel has already completed.
313
313
// In order to handle this case, we issue a dummy query that will consume the pending cancellation.
314
314
// See https://bugs.mysql.com/bug.php?id=45679
315
-
Log.Info("Session{0} sending 'DO SLEEP(0)' command to clear pending cancellation",m_logArguments);
315
+
Log.Debug("Session{0} sending 'DO SLEEP(0)' command to clear pending cancellation",m_logArguments);
316
316
varpayload=QueryPayload.Create("DO SLEEP(0);");
317
317
#pragma warning disable CA2012// Safe because method completes synchronously
Log.Info("Session{0} changing ConnectionIdOld {1} to ConnectionId {2} and ServerVersionOld {3} to ServerVersion {4}",m_logArguments[0],ConnectionId,connectionId.Value,ServerVersion.OriginalString,newServerVersion.OriginalString);
1555
+
Log.Debug("Session{0} changing ConnectionIdOld {1} to ConnectionId {2} and ServerVersionOld {3} to ServerVersion {4}",m_logArguments[0],ConnectionId,connectionId.Value,ServerVersion.OriginalString,newServerVersion.OriginalString);
1556
1556
ConnectionId=connectionId.Value;
1557
1557
ServerVersion=newServerVersion;
1558
1558
}
@@ -1565,7 +1565,7 @@ static void ReadRow(ReadOnlySpan<byte> span, out int? connectionId, out byte[]?
0 commit comments