From f833b9caec4fe5192e2190ff1970fcccf4bdd7cf Mon Sep 17 00:00:00 2001 From: Neil Enns Date: Sun, 11 Feb 2024 21:22:46 -0800 Subject: [PATCH] Clean up the overall timer --- server/src/services/vatsimFlightPlans.mts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/services/vatsimFlightPlans.mts b/server/src/services/vatsimFlightPlans.mts index 8a08a88e..bde09183 100644 --- a/server/src/services/vatsimFlightPlans.mts +++ b/server/src/services/vatsimFlightPlans.mts @@ -227,6 +227,7 @@ function setCoast(plan: VatsimFlightPlanDocument) { // Takes the massive list of data from vatsim and processes it into the database. // Both pilots (a.k.a flight plans) and prefiles are processed. export async function processVatsimFlightPlanData(vatsimData: IVatsimData) { + const overallProfiler = logger.startTimer(); let profiler = logger.startTimer(); // Build a list of all the incoming plans, regardless of whether it's a prefile, @@ -357,7 +358,7 @@ export async function processVatsimFlightPlanData(vatsimData: IVatsimData) { logger.debug(`Saved ${savedDataCount} updated plans`, { savedDataCount }); - profiler.done({ + overallProfiler.done({ message: `Done processing ${incomingPlans.length} incoming VATSIM flight plans`, counts: { current: currentPlans.length,