Skip to content

Commit 4c1b5da

Browse files
committed
add some debug logging to RoutingContext constructor to show the computed trip origin and destination.
1 parent a3fdf36 commit 4c1b5da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

opentripplanner-routing/src/main/java/org/opentripplanner/routing/core/RoutingContext.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ public RoutingContext(RoutingRequest routingRequest, Graph graph, Vertex from, V
182182
remainingWeightHeuristic = new TrivialRemainingWeightHeuristic();
183183
else
184184
remainingWeightHeuristic = heuristicFactory.getInstanceForSearch(opt);
185+
186+
LOG.debug("Origin vertex {}", this.origin);
187+
LOG.debug("Origin vertex inbound edges {}", this.origin.getIncoming());
188+
LOG.debug("Origin vertex outbound edges {}", this.origin.getOutgoing());
189+
190+
LOG.debug("Destination vertex {}", this.target);
191+
LOG.debug("Destination vertex inbound edges {}", this.target.getIncoming());
192+
LOG.debug("Destination vertex outbound edges {}", this.target.getOutgoing());
185193
}
186194

187195

0 commit comments

Comments
 (0)