From eb1a2ad8a6f405a916c39ccb211ebd76689243e0 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 25 Oct 2017 17:29:33 +0200 Subject: [PATCH] tolto logging gather_tick + log migliorato nome prog --- IOB-WIN/IobFanuc.cs | 1 - IOB-WIN/IobGeneric.cs | 1 + IOB-WIN/MainForm.cs | 4 +--- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/IOB-WIN/IobFanuc.cs b/IOB-WIN/IobFanuc.cs index b9b40dfc..e9e5e5fc 100644 --- a/IOB-WIN/IobFanuc.cs +++ b/IOB-WIN/IobFanuc.cs @@ -250,7 +250,6 @@ namespace IOB_WIN { lg.Error(exc, "Errore in readPrgName"); } - if (verboseLog) lg.Info(string.Format("PrgName: {0}", prgName)); return prgName; } diff --git a/IOB-WIN/IobGeneric.cs b/IOB-WIN/IobGeneric.cs index d1a412f7..99b2514f 100644 --- a/IOB-WIN/IobGeneric.cs +++ b/IOB-WIN/IobGeneric.cs @@ -1130,6 +1130,7 @@ namespace IOB_WIN // salvo! lastPrgName = currPrgName; displayOtherData(); + if (verboseLog) lg.Info(string.Format("PrgName: {0}", currPrgName)); } } /// diff --git a/IOB-WIN/MainForm.cs b/IOB-WIN/MainForm.cs index 3a505bc8..a4e3982a 100644 --- a/IOB-WIN/MainForm.cs +++ b/IOB-WIN/MainForm.cs @@ -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"); } /// /// Chiusura adapter