xf 2 years ago
parent
commit
8b90acd38e

+ 1 - 1
src/CallCenter.Application/Handlers/FlowControl/CdrNotificationHandler.cs

@@ -159,7 +159,7 @@ namespace CallCenter.Application.Handlers
 
                             try
                             {
-                                var client = _httpClientFactory.CreateClient();
+                                using var client = _httpClientFactory.CreateClient();
                                 client.DefaultRequestHeaders.ConnectionClose = true;
                                 var requestContent = JsonSerializer.Serialize(list);
                                 _logger.LogInformation(requestContent);

+ 2 - 0
src/CallCenter.Repository.SqlSugar/SqlSugarStartupExtensions.cs

@@ -121,6 +121,8 @@ namespace CallCenter.Repository.SqlSugar
 
                             Log.Warning("slow query ==> fileName: {fileName}, fileLine: {fileLine}, FirstMethodName: {FirstMethodName}",
                                 fileName, fileLine, FirstMethodName);
+                            Log.Warning("slow query sql: ", sql);
+                            Log.Warning("slow query params: ", string.Join(',', p.ToList()));
                         }
                         //相当于EF的 PrintToMiniProfiler
                     };