tolto logging gather_tick + log migliorato nome prog

This commit is contained in:
Samuele E. Locatelli
2017-10-25 17:29:33 +02:00
parent 619911c585
commit eb1a2ad8a6
3 changed files with 2 additions and 4 deletions
-1
View File
@@ -250,7 +250,6 @@ namespace IOB_WIN
{
lg.Error(exc, "Errore in readPrgName");
}
if (verboseLog) lg.Info(string.Format("PrgName: {0}", prgName));
return prgName;
}
+1
View File
@@ -1130,6 +1130,7 @@ namespace IOB_WIN
// salvo!
lastPrgName = currPrgName;
displayOtherData();
if (verboseLog) lg.Info(string.Format("PrgName: {0}", currPrgName));
}
}
/// <summary>
+1 -3
View File
@@ -440,7 +440,6 @@ namespace IOB_WIN
}
private void gather_Tick(object sender, EventArgs e)
{
if (iobObj.verboseLog) lg.Info("START gather_Tick");
// eseguo cicli attivi SOLO se adapter è in EFFETTIVO running...
if (iobObj.adpRunning)
{
@@ -481,7 +480,7 @@ namespace IOB_WIN
}
else
{
lg.Info("PLC <--> IOB Not connected");
if (iobObj.verboseLog) lg.Info("PLC <--> IOB Not connected");
// verifico SE debba tentare il riavvio, ovvero NON running ma tryReconn e non ho riprovato x oltre waitRecMSec
double currWait = DateTime.Now.Subtract(lastStartTry).TotalMilliseconds;
if (iobObj.adpTryRestart && currWait > utils.CRI("waitRecMSec"))
@@ -491,7 +490,6 @@ namespace IOB_WIN
iobObj.loadPersData();
}
}
if (iobObj.verboseLog) lg.Info("END gather_Tick");
}
/// <summary>
/// Chiusura adapter