Skip to content

Commit 6248605

Browse files
committed
added tmode to log/debug string
1 parent 313841e commit 6248605

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

core/src/main/java/com/graphhopper/GHResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class GHResponse
3232
{
3333
private String debugInfo = "";
3434
private final List<Throwable> errors = new ArrayList<Throwable>(4);
35-
private final PMap hintsMap = new PMap();
35+
private final PMap hintsMap = new PMap();
3636
private final List<PathWrapper> pathWrappers = new ArrayList<PathWrapper>(5);
3737

3838
public GHResponse()
@@ -77,7 +77,7 @@ public void addDebugInfo( String debugInfo )
7777
throw new IllegalStateException("Debug information has to be none null");
7878

7979
if (!this.debugInfo.isEmpty())
80-
this.debugInfo += ";";
80+
this.debugInfo += "; ";
8181

8282
this.debugInfo += debugInfo;
8383
}

core/src/main/java/com/graphhopper/GraphHopper.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,11 +1030,8 @@ protected List<Path> calcPaths( GHRequest request, GHResponse ghRsp )
10301030
String tModeStr = hints.get("traversal_mode", traversalMode.toString());
10311031
TraversalMode tMode = TraversalMode.fromString(tModeStr);
10321032
if (hints.has(Routing.EDGE_BASED))
1033-
{
1034-
tMode = hints.getBool(Routing.EDGE_BASED, false)
1035-
? TraversalMode.EDGE_BASED_2DIR
1036-
: TraversalMode.NODE_BASED;
1037-
}
1033+
tMode = hints.getBool(Routing.EDGE_BASED, false) ? TraversalMode.EDGE_BASED_2DIR : TraversalMode.NODE_BASED;
1034+
ghRsp.addDebugInfo("tmode:" + tMode.toString());
10381035

10391036
FlagEncoder encoder = encodingManager.getEncoder(vehicle);
10401037
List<GHPoint> points = request.getPoints();

0 commit comments

Comments
 (0)