Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Sep 22, 2023
1 parent 5fc11bf commit be134b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- name: 'Download data'
run: |
set -eo pipefail
find data
cp base/planetiler-dist/target/*with-deps.jar run.jar && java -jar run.jar --only-download --area="${{ env.AREA }}"
cp branch/planetiler-dist/target/*with-deps.jar run.jar && java -jar run.jar --only-download --area="${{ env.AREA }}"
find data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ public void run() throws Exception {
if (!toDownload.isEmpty()) {
download();
}
LOGGER.error("fetchOsmTileStats={}", fetchOsmTileStats);
if (fetchOsmTileStats) {
TopOsmTiles.downloadPrecomputed(config, stats);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ public static void main(String[] args) throws IOException {
* {@link PlanetilerConfig#tileWeights()} path if they don't already exist.
*/
public static void downloadPrecomputed(PlanetilerConfig config, Stats stats) {
LOGGER.error("TopOsmTiles.downloadPrecomputed={} {}", config.tileWeights(), Files.exists(config.tileWeights()));
if (!Files.exists(config.tileWeights())) {
LOGGER.error("TopOsmTiles.downloadPrecomputed downloading");
Downloader.create(config, stats)
.downloadIfNecessary(new Downloader.ResourceToDownload("osm-tile-weights", DOWLOAD_URL, config.tileWeights()));
}
Expand Down

0 comments on commit be134b3

Please sign in to comment.