Update x intercettare (forse) errori in reset conf
This commit is contained in:
+9
-1
@@ -1830,7 +1830,15 @@ namespace MapoDb
|
||||
// verifico il timeout che cambia a seconda che sia vero o falso insEnabled...
|
||||
int tOutShort = memLayer.ML.cdvi("TmOut.MS.S");
|
||||
int tOutLong = memLayer.ML.cdvi("TmOut.MS.L");
|
||||
int redDtMacTOut = (answ["insEnabled"].ToLower() == "true") ? tOutShort : tOutLong;
|
||||
int redDtMacTOut = tOutLong;
|
||||
try
|
||||
{
|
||||
redDtMacTOut = (answ["insEnabled"].ToLower() == "true") ? tOutShort : tOutLong;
|
||||
}
|
||||
catch(Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog($"Eccezione in calcolo timeout dati macchina: idxMacchina{idxMacchina} | TShort: {tOutShort} | TLong {tOutLong}{Environment.NewLine}{exc}");
|
||||
}
|
||||
// salvo in redis!
|
||||
memLayer.ML.redSaveHashDict(currHash, answ, redDtMacTOut);
|
||||
return answ;
|
||||
|
||||
Reference in New Issue
Block a user