From 0bbda3dfd092169d80798f071b82d5f0652da7f0 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 Jul 2024 04:04:59 +0200 Subject: [PATCH] Debug logging during search --- astar/Astar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astar/Astar.cs b/astar/Astar.cs index 0ce55d1..c55c271 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -37,7 +37,6 @@ namespace astar while (toVisitStart.Count > 0 && toVisitEnd.Count > 0) { - logger?.LogDebug($"Length toVisit-Start: {toVisitStart.Count} -End: {toVisitEnd.Count}"); ulong currentNodeStartId = toVisitStart.Dequeue(); Node currentNodeStart = graph.Nodes[currentNodeStartId]; foreach ((ulong neighborId, ulong wayId) in currentNodeStart.Neighbors) @@ -101,6 +100,7 @@ namespace astar } logger?.LogTrace($"Neighbor {neighborId} {neighborNode}"); } + logger?.LogDebug($"Distance {currentNodeStart.DistanceTo(currentNodeEnd):000000.00}m toVisit-Queues: {toVisitStart.Count} {toVisitEnd.Count}"); } return new Route(graph, Array.Empty().ToList(), false);