Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#238: improve logging of ToolRepositoryMock as suggested by ndemirca #241

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading