From 6117830f88e4b8e8cade6995f3d14aa8cf46cc6b Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 26 Oct 2017 09:17:18 +0200 Subject: [PATCH] Fix typo PrgName + fix log SYS e PROG --- IOB-WIN/IobFanuc.cs | 2 +- IOB-WIN/IobGeneric.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IOB-WIN/IobFanuc.cs b/IOB-WIN/IobFanuc.cs index 4d952c31..ca93650e 100644 --- a/IOB-WIN/IobFanuc.cs +++ b/IOB-WIN/IobFanuc.cs @@ -244,7 +244,7 @@ namespace IOB_WIN try { string nome = new string(answ.name); - prgName= string.Format("{0}{1}", answ.o_num, nome); + prgName= string.Format("{0}|{1}", answ.o_num, nome); } catch(Exception exc) { diff --git a/IOB-WIN/IobGeneric.cs b/IOB-WIN/IobGeneric.cs index db32c19c..69cff3f8 100644 --- a/IOB-WIN/IobGeneric.cs +++ b/IOB-WIN/IobGeneric.cs @@ -1225,7 +1225,7 @@ namespace IOB_WIN // salvo! lastPrgName = currPrgName; displayOtherData(currPrgName); - lg.Info(string.Format("{0}", currPrgName)); + lg.Info(string.Format("[PROG]{0}", currPrgName)); // --> accodo (valore già formattato)! QueueFLog.Enqueue(qEncodeFLog("PROG", currPrgName)); // Gestione counter FLog! @@ -1258,7 +1258,7 @@ namespace IOB_WIN string sVal = ""; foreach (var item in currSysInfo) { - sVal = string.Format("{0}: {1}", item.Key, item.Value); + sVal = string.Format("[SYSINFO]{0}|{1}", item.Key, item.Value); displayOtherData(sVal); lg.Info(string.Format("{0}", sVal)); // --> accodo (valore già formattato)!