Skip to content

Commit

Permalink
imporve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sclassen committed May 17, 2022
1 parent 137c474 commit 99b7db0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void addSearchJar(final URL jarLocation) {
LOG.info("Activate native: {}", jarLocation);
final File localFile = tracker.getCacheFile(jarLocation);
if (localFile == null || !localFile.isFile()) {
LOG.debug("No local file found for {}", jarLocation);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public java.util.jar.JarFile retrieve(URL url) throws IOException {
}

if (localUrl == null) {
LOG.info("could not find mapping for {} - falling back to downloading without caching", url);
/*
* If the jar url is not known, treat it as it would be treated in
* general by URLJarFile.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,16 +581,19 @@ private void initializeExtensions() {
private void initializeReadJarPermissions() {

JARDesc[] jars = resources.getJARs();
int counter = 0;
for (JARDesc jar : jars) {
Permission p = getReadPermission(jar);

if (p == null) {
LOG.info("Unable to add permission for {}", jar.getLocation());
} else {
resourcePermissions.add(p);
LOG.info("Permission added: {}", p.toString());
LOG.debug("Permission added: {}", p.toString());
counter++;
}
}
LOG.info("Added permissions for {} jars", counter);
}

private Permission getReadPermission(JARDesc jar) {
Expand Down

0 comments on commit 99b7db0

Please sign in to comment.