Compare commits

...

3 Commits

Author SHA1 Message Date
Samuele Locatelli 8b2be815a5 Merge branch 'release/fixEmptyRedisVal' 2021-08-19 12:08:05 +02:00
Samuele Locatelli 81704a5182 permesso di reset valori REDIS 2021-08-19 12:07:37 +02:00
Samuele Locatelli e0ab2cf853 Merge tag 'fixSe' into develop
Fix setRSV x caso chaive empty
2021-08-19 11:34:11 +02:00
2 changed files with 10 additions and 24 deletions
+5 -12
View File
@@ -2146,21 +2146,14 @@ namespace SteamWare.IO
bool answ = false;
if (!string.IsNullOrEmpty(chiave))
{
if (!string.IsNullOrEmpty(valore))
try
{
try
{
cache.StringSet(chiave, valore);
answ = true;
}
catch (Exception exc)
{
Logging.Instance.Error(string.Format("Eccezzione in setRSV:{0}{1}", Environment.NewLine, exc));
}
cache.StringSet(chiave, valore);
answ = true;
}
else
catch (Exception exc)
{
Logging.Instance.Error("Errore: valore non valido (vuoto) in setRSV");
Logging.Instance.Error(string.Format("Eccezzione in setRSV:{0}{1}", Environment.NewLine, exc));
}
}
else
+5 -12
View File
@@ -2163,21 +2163,14 @@ namespace SteamWare
bool answ = false;
if (!string.IsNullOrEmpty(chiave))
{
if (!string.IsNullOrEmpty(valore))
try
{
try
{
cache.StringSet(chiave, valore);
answ = true;
}
catch (Exception exc)
{
logger.lg.scriviLog($"Eccezzione in setRSV | chiave: {chiave} | valore: {valore}{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
}
cache.StringSet(chiave, valore);
answ = true;
}
else
catch (Exception exc)
{
logger.lg.scriviLog("Errore: valore non valido (vuoto) in setRSV", tipoLog.ERROR);
logger.lg.scriviLog($"Eccezzione in setRSV | chiave: {chiave} | valore: {valore}{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
}
}
else