From 6d98ca037e1d4233ab88275d13fb134660222383 Mon Sep 17 00:00:00 2001 From: Davoud Eshtehari Date: Mon, 16 Oct 2023 21:04:44 +0000 Subject: [PATCH] Merged PR 4065: [3.1.4] | Fixes FormatException when Tracing is enabled (#1291) Ports [#1291](https://github.com/dotnet/SqlClient/pull/1291) --- .../src/Microsoft/Data/SqlClient/SqlClientEventSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientEventSource.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientEventSource.cs index 4de98e5379..16be682a5f 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientEventSource.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientEventSource.cs @@ -358,7 +358,7 @@ private string GetFormattedMessage(string className, string memberName, string e #region Traces without if statements [NonEvent] - internal void TraceEvent(string message, T0 args0, T1 args1, [System.Runtime.CompilerServices.CallerMemberName] string memberName = "") + internal void TraceEvent(string message, T0 args0, T1 args1) { Trace(string.Format(message, args0?.ToString() ?? NullStr, args1?.ToString() ?? NullStr)); }