FSN#41577 Putorders aantal failures expliciet loggen

svn path=/Website/branches/v2017.1/; revision=34900
This commit is contained in:
Jos Groot Lipman
2017-08-10 11:00:37 +00:00
parent 9a20d46c53
commit 058cc9bd90

View File

@@ -85,6 +85,10 @@ function sendAllOrders()
+ " of " + String(RecTotal)
+ " orders put";
Log2File(errLevel, recMsg);
if (recSaved != RecTotal)
{
Log2File(1, "That makes {0} failure(s)".format(RecTotal - recSaved));
}
}
else
{
@@ -129,7 +133,7 @@ function send1Order(Bedrijf_key, prs_loc_key, XMLnode, OpdrKey, ordernr, Sender,
nextdatum.setMinutes(nextdatum.getMinutes() + backofminutes);
if (nextdatum > new Date())
{
Log2File(1, "Failed {0} times between {1} and {2}, delaying until {3}".format(failcount, toDateTimeString(firstdatum), toDateTimeString(faildatum), toDateTimeString(nextdatum)));
Log2File(1, "Failed {0} time(s) between {1} and {2}, delaying until {3}".format(failcount, toDateTimeString(firstdatum), toDateTimeString(faildatum), toDateTimeString(nextdatum)));
return false;
}
else