Explorar o código

add log when batching

gsp %!s(int64=2) %!d(string=hai) anos
pai
achega
52e2653ac8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      OTSIncAMeasureApp/ServiceCenter/EDSController.cs

+ 2 - 1
OTSIncAMeasureApp/ServiceCenter/EDSController.cs

@@ -174,6 +174,7 @@ namespace OTSModelSharp.ServiceCenter
             int nSize = a_listParticles.Count;
             if (nSize > 1024)
             {
+                NLog.LogManager.GetCurrentClassLogger().Warn("xraynum>1024");
                 COTSParticleClr[] partsTemp = new COTSParticleClr[1024];
                 Point[] PsTemp = new Point[1024];
 
@@ -192,8 +193,8 @@ namespace OTSModelSharp.ServiceCenter
                         NLog.LogManager.GetCurrentClassLogger().Error("GetXRayByPoints: failed to get element.");
                         return false;
                     }
+                    NLog.LogManager.GetCurrentClassLogger().Warn("1024 batch succeed");
 
-                   
                 }
 
                 int nLast = nSize % 1024;