Fix log + puntuale x casi di MANCANZA ODL

This commit is contained in:
Samuele E. Locatelli
2018-12-06 12:47:51 +01:00
parent 3940e57fab
commit dedee3ed91
2 changed files with 4 additions and 8 deletions
Vendored
+1 -1
View File
@@ -18,7 +18,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=1031']) {
withEnv(['NEXT_BUILD_NUMBER=1032']) {
// env.versionNumber = VersionNumber(versionNumberString : '6.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '6.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO'
+3 -7
View File
@@ -972,7 +972,7 @@ namespace MapoDb
}
else
{
string errore = "Errore: parametri macchina/currODL vuoti";
string errore = string.Format("Errore: parametri macchina/currODL vuoti ({0}/{1})", idxMacchina, currODL);
logger.lg.scriviLog(errore, tipoLog.ERROR);
answ = errore;
}
@@ -1505,17 +1505,13 @@ namespace MapoDb
else
{
// verifico se ho già questo errore attivo IN REDIS (altrimenti reinvio)
logger.lg.scriviLog(string.Format("[pzCounterTC] Errore in currODL x idxMacchina {0} | IdxOdl {1} | pzTot {2} | dataRif {3}", idxMacchina, datiProdAct[0].IdxOdl, datiProdAct[0].PzTotODL, dataRif));
logger.lg.scriviLog(string.Format("pzCounterTC: Non trovato currODL x idxMacchina {0} | IdxOdl {1} | pzTot {2} | dataRif {3}", idxMacchina, datiProdAct[0].IdxOdl, datiProdAct[0].PzTotODL, dataRif), tipoLog.WARNING);
}
}
else
{
logger.lg.scriviLog("[pzCounterTC] Errore in currODL x idxMacchina " + idxMacchina + ": datiProdAct vuota");
logger.lg.scriviLog("pzCounterTC: Non trovate righe in currODL x idxMacchina " + idxMacchina + ": datiProdAct vuota", tipoLog.WARNING);
}
#if false
// vecchia procedura di lettura da MSE...
answ = DataLayer.obj.taMSE.getByIdxMacchina(idxMacchina)[0].PezziProd;
#endif
}
catch (Exception exc)
{