From 3e69fad064783cbb092b40774edf5348ea15b7b0 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Wed, 9 Apr 2025 12:52:09 +0000 Subject: [PATCH] FCLT#88543 Tasker 'late' onderzoek svn path=/Website/branches/v2025.1/; revision=68705 --- UTILS/PutOrders/puo_notifications.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) {