Skip to content

Commit

Permalink
#238: improve logging of ToolRepositoryMock as suggested by ndemirca (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille authored Mar 8, 2024
1 parent 194a993 commit eb29ec8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public Path download(String tool, String edition, VersionIdentifier version) {
Path editionFolder = this.repositoryFolder.resolve(tool).resolve(edition);
Path versionFolder = editionFolder.resolve(version.toString());
if (!Files.isDirectory(versionFolder)) {
this.context.debug("Could not find version {} so using 'default' for {}/{}", version, tool, edition);
versionFolder = editionFolder.resolve("default");
}
if (!Files.isDirectory(versionFolder)) {
Expand All @@ -74,6 +75,8 @@ public Path download(String tool, String edition, VersionIdentifier version) {
Path child = iterator.next();
if (Files.isRegularFile(child) && child.getFileName().startsWith("content.")) {
contentArchive = child;
this.context.debug("Using compressed archive {} for mock download of {}/{}", child.getFileName(), tool,
edition);
} else {
break;
}
Expand Down

0 comments on commit eb29ec8

Please sign in to comment.