From 422871643e3f86046c577c52d506a7de88d6994c Mon Sep 17 00:00:00 2001 From: Nadeem Afana Date: Mon, 27 Sep 2021 07:08:10 -0700 Subject: [PATCH] Fixes FormatException when Tracing is enabled --- .../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 4bb5621c29..203cffd705 100644 --- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientEventSource.cs +++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlClientEventSource.cs @@ -362,7 +362,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)); }