Procházet zdrojové kódy

add log when batching

gsp před 1 rokem
rodič
revize
52e2653ac8

+ 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;