diff --git a/UTILS/PutOrders/puo_notifications.js b/UTILS/PutOrders/puo_notifications.js index f33178e8e2..36f7b14a90 100644 --- a/UTILS/PutOrders/puo_notifications.js +++ b/UTILS/PutOrders/puo_notifications.js @@ -49,7 +49,7 @@ function sendNotification(ref_key, pcode, params) if (aantalfuture) { - Log2File(1, "====== Skipping {0} delayed notifications for between {1} and {2}".format(aantalfuture, toDateTimeString(firstdatum), toDateTimeString(lastdatum))); + Log2File(1, "{0} Skipping {1} delayed notifications for between {2} and {3}".format(toDateTimeString(new Date()), aantalfuture, toDateTimeString(firstdatum), toDateTimeString(lastdatum))); if (forceOrders) Log2File(1, "*But* parameter FORCE is given so sending anyway"); } @@ -152,8 +152,14 @@ function sendNotification(ref_key, pcode, params) var sql = "BEGIN fac.fac_pre_putorders(); END;"; Log2File(3, sql); try - { + { // we weten niet of pre_putorders bij de klant is gedefinieerd maar kunnen het wel timen + var tmstart = new Date(); Oracle.Execute(sql); + var tm = (new Date().getTime() - tmstart.getTime()); + if (tm > 500) + { + Log2File(1, "pre_putorders took {0} seconds".format(Math.round(tm/100) / 10)); + } } catch(e) {