Skip to content

Commit 4e118ae

Browse files
authored
Fixed incorrect string format at event tracing when OutOfMemory exception thrown (#2797)
1 parent c0ae757 commit 4e118ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnectionHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ internal void Abort(Exception e)
137137
// will end the reliable try...
138138
if (e is OutOfMemoryException)
139139
{
140-
SqlClientEventSource.Log.TryTraceEvent("<prov.DbConnectionHelper.Abort|RES|INFO|CPOOL> {0}, Aborting operation due to asynchronous exception: {'OutOfMemory'}", ObjectID);
140+
SqlClientEventSource.Log.TryTraceEvent("<prov.DbConnectionHelper.Abort|RES|INFO|CPOOL> {0}, Aborting operation due to asynchronous exception: OutOfMemory", ObjectID);
141141
}
142142
else
143143
{

0 commit comments

Comments
 (0)