pulizia log x AT2001 siemens

This commit is contained in:
Samuele E. Locatelli
2019-10-30 18:46:02 +01:00
parent 359b547a1f
commit 1bc2ed3dd8
2 changed files with 11 additions and 6 deletions
+4 -2
View File
@@ -932,7 +932,6 @@ namespace IOB_WIN
}
else
{
lgInfo("getDynData: step 01");
try
{
// processo x ogni valore configurato...
@@ -1002,7 +1001,10 @@ namespace IOB_WIN
{
lgInfo($"Non processo getDynData: enableTSVC = false");
}
lgInfo($"Esito getDynData: {outVal.Count} valori in outVal");
if (periodicLog || outVal.Count > 0)
{
lgInfo($"Esito getDynData: {outVal.Count} valori VALIDI in outVal");
}
return outVal;
}
+7 -4
View File
@@ -2,7 +2,6 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
namespace IOB_WIN
{
@@ -164,9 +163,12 @@ namespace IOB_WIN
{
Dictionary<string, string> outVal = new Dictionary<string, string>();
// controllo se eseguire versione base del getDynData
#if false
if (getOptPar("NEW_DYN_DATA") != "")
{
outVal = base.getDynData();
{
#endif
outVal = base.getDynData();
#if false
}
else
{
@@ -263,7 +265,8 @@ namespace IOB_WIN
lgError(exc, "Errore in getDynData x Siemens AT2001");
}
}
}
}
#endif
return outVal;
}