Skip to content

Commit

Permalink
🔊 Log on debug level jars found in /lib directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Aug 7, 2024
1 parent 9eff284 commit 123ae41
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/main/java/org/restheart/plugins/PluginsScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,14 @@ private URL[] _findPluginsJars(Path dir, int depth) {
}

urls.add(jar);
LOGGER.info("Found plugin jar {}", URLDecoder.decode(jar.getPath(), StandardCharsets.UTF_8.toString()));

if (path.toAbsolutePath().toString().contains("/lib/")) {
LOGGER.debug("Found lib jar {}", URLDecoder.decode(jar.getPath(), StandardCharsets.UTF_8.toString()));
} else {
LOGGER.info("Found plugin jar {}", URLDecoder.decode(jar.getPath(), StandardCharsets.UTF_8.toString()));
}


}
} catch (IOException ex) {
LOGGER.error("Cannot read jars in plugins directory {}", Bootstrapper.getConfiguration().coreModule().pluginsDirectory(), ex.getMessage());
Expand Down

0 comments on commit 123ae41

Please sign in to comment.