Skip to content

Commit

Permalink
Merge pull request #329 from HSLdevcom/suppress-reverse-fail-log
Browse files Browse the repository at this point in the history
Temporarily change log level from debug to warn for a couple of logs
vesameskanen authored Jan 27, 2020
2 parents da7ca2a + f282870 commit 4dd0be3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -182,7 +182,7 @@ public List<GraphPath> getPaths(RoutingRequest options) {
try {
newPaths = compactLegsByReversedSearch(aStar, originalReq, options, newPaths, timeout, reversedSearchHeuristic);
} catch (Exception e) {
LOG.warn("CompactLegsByReversedSearch failed on request: " + originalReq.toString());
LOG.debug("CompactLegsByReversedSearch failed on request: " + originalReq.toString());
}
}

@@ -530,7 +530,7 @@ private static GraphPath joinPaths(List<GraphPath> paths, Boolean addLegsSwitchi
for (Edge e : path.edges) {
lastState = e.traverse(lastState);
if (lastState==null){
LOG.warn("About to add null lastState to newPath. This may cause nullPointer in next iteration? Caused by traversing edge: " + e);
LOG.debug("About to add null lastState to newPath. This may cause nullPointer in next iteration? Caused by traversing edge: " + e);
}
newPath.edges.add(e);
newPath.states.add(lastState);

0 comments on commit 4dd0be3

Please sign in to comment.