diff --git a/.gitignore b/.gitignore index 08256880331..d4b95170ef5 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ _site/ /otp /otp-batch-analyst graphs/ +taggedStops.log diff --git a/src/main/java/org/opentripplanner/graph_builder/GraphBuilder.java b/src/main/java/org/opentripplanner/graph_builder/GraphBuilder.java index ae0b822c2b9..161c7cc7e20 100644 --- a/src/main/java/org/opentripplanner/graph_builder/GraphBuilder.java +++ b/src/main/java/org/opentripplanner/graph_builder/GraphBuilder.java @@ -45,6 +45,7 @@ the License, or (at your option) any later version. import org.opentripplanner.standalone.S3BucketConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.slf4j.MDC; import java.io.File; import java.io.IOException; @@ -109,10 +110,12 @@ public void setModes(List modeList) { } public void setPath (String path) { + MDC.put("routerPath", path); graphFile = new File(path.concat("/Graph.obj")); } public void setPath (File path) { + MDC.put("routerPath", path.getPath()); graphFile = new File(path, "Graph.obj"); } diff --git a/src/main/java/org/opentripplanner/graph_builder/module/TransitToTaggedStopsModule.java b/src/main/java/org/opentripplanner/graph_builder/module/TransitToTaggedStopsModule.java index 0eea5ee4486..2e6fcd2f140 100644 --- a/src/main/java/org/opentripplanner/graph_builder/module/TransitToTaggedStopsModule.java +++ b/src/main/java/org/opentripplanner/graph_builder/module/TransitToTaggedStopsModule.java @@ -102,7 +102,7 @@ private boolean connectVertexToStop(TransitStop ts, boolean wheelchairAccessible if (tsv.stopCode != null && tsv.stopCode.equals(stopCode)) { new StreetTransitLink(ts, tsv, wheelchairAccessible); new StreetTransitLink(tsv, ts, wheelchairAccessible); - LOG.debug("Connected " + ts.toString() + " to " + tsv.getLabel()); + LOG.debug("Connected " + ts.toString() + " (" + ts.getStopCode() + ") to " + tsv.getLabel() + " at " + tsv.getCoordinate().toString()); return true; } } diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 9f0be95cd02..386ac61b073 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -22,6 +22,27 @@ WARN + + + + routerPath + . + + + + ${routerPath}/taggedStops.log + false + + false + + + %msg%n + + + + + @@ -54,5 +75,8 @@ + + +