Skip to content

Commit 3e413c5

Browse files
committed
Apply suggestion from PR review.
1 parent d02a792 commit 3e413c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SSPI/NegotiateSSPIContextProvider.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ internal override void GenerateSspiClientContext(ReadOnlyMemory<byte> received,
2121
_negotiateAuth ??= new(new NegotiateAuthenticationClientOptions { Package = "Negotiate", TargetName = Encoding.Unicode.GetString(_sniSpnBuffer[i]) });
2222
sendBuff = _negotiateAuth.GetOutgoingBlob(received.Span, out statusCode)!;
2323
// Log session id, status code and the actual SPN used in the negotiation
24-
SqlClientEventSource.Log.TryTraceEvent($"TdsParserStateObjectManaged.GenerateSspiClientContext | Info | Session Id {_physicalStateObj.SessionId}, StatusCode={statusCode}, SPN={_negotiateAuth.TargetName}");
25-
24+
SqlClientEventSource.Log.TryTraceEvent("TdsParserStateObjectManaged.GenerateSspiClientContext | Info | Session Id {0}, StatusCode={1}, SPN={2}", _physicalStateObj.SessionId, statusCode, _negotiateAuth.TargetName);
2625
if (statusCode == NegotiateAuthenticationStatusCode.Completed || statusCode == NegotiateAuthenticationStatusCode.ContinueNeeded)
2726
break; // Successful case, exit the loop with current SPN.
2827
else

0 commit comments

Comments
 (0)