Fix log ricerca IOB_INFO

This commit is contained in:
Samuele Locatelli
2024-02-27 16:32:24 +01:00
parent e568c91dd7
commit f413f44e3d
+5 -1
View File
@@ -897,10 +897,14 @@ namespace MP.Data.Services
result = JsonConvert.DeserializeObject<IOB_data>($"{rawData}");
source = "REDIS";
}
if (result == null)
else
{
Log.Error($"Errore: non trovato valore <IOB_data> valido in REDIS | key: {currKey}");
}
if (result == null)
{
result = new IOB_data();
Log.Debug($"Init valore default <IOB_data> | IdxMacchina: {IdxMacchina}");
}
sw.Stop();
Log.Debug($"IobInfo per {IdxMacchina} | {source} | {sw.Elapsed.TotalMilliseconds}ms");