Skip to content

Commit

Permalink
chore(mapmatching): reduce verbosity on internal map matching errors
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Psotta <[email protected]>
  • Loading branch information
aoles and MichaelsJP authored Jan 9, 2024
1 parent 69e14bc commit 9463605
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ RELEASING:
- refactor RoutingProfile (part of [#1520](https://github.com/GIScience/openrouteservice/issues/1520))
- update maven repository for dependencies ([#1536](https://github.com/GIScience/openrouteservice/pull/1536))
- spring-boot-starter-parent to v3.1.6 ([#1630](https://github.com/GIScience/openrouteservice/issues/1630))
- silence traffic map-matching internal errors ([#1635](https://github.com/GIScience/openrouteservice/pulls/1635))
- fix IN1-JAVA-ORGMOZILLA-1314295 ([#1627](https://github.com/GIScience/openrouteservice/issues/1627))

### Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ private RouteSegmentInfo[] matchLinkToSegments(ORSGraphHopper graphHopper, int t
try {
matchedSegments = getMatchedSegmentsInternal(geometry, originalTrafficLinkLength, trafficLinkFunctionalClass, bothDirections, matchingRadius);
} catch (Exception e) {
LOGGER.info("Error while matching: " + e);
if (e.getMessage().startsWith("Sequence is broken for submitted track"))
LOGGER.debug("Error while matching: " + e);
else
LOGGER.warn("Error while matching: " + e);
}
return matchedSegments;
}
Expand Down

0 comments on commit 9463605

Please sign in to comment.