From a6e7657818c286e1cdd1a1e1b7648e7e229cb2ef Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Tue, 28 Mar 2023 15:01:37 +0200 Subject: [PATCH] Print total route distance for easier debugging by analyzing logs Signed-off-by: Alexander Borsuk --- routing/async_router.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/async_router.cpp b/routing/async_router.cpp index 98d7399c55..1b9679d2c8 100644 --- a/routing/async_router.cpp +++ b/routing/async_router.cpp @@ -337,8 +337,8 @@ void AsyncRouter::CalculateRoute() try { - LOG(LINFO, ("Calculating the route. checkpoints:", checkpoints, "startDirection:", - startDirection, "router name:", router->GetName())); + LOG(LINFO, ("Calculating the route of direct length", checkpoints.GetSummaryLengthBetweenPointsMeters(), + "m. checkpoints:", checkpoints, "startDirection:", startDirection, "router name:", router->GetName())); if (absentRegionsFinder) absentRegionsFinder->GenerateAbsentRegions(checkpoints, delegateProxy->GetDelegate());