Skip to content

Commit

Permalink
Adapt Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Nov 3, 2023
1 parent b0259ae commit 389c77e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ default Optional<ResourceBundle> getBundle(Locale locale) {
}
try {
Optional<ResourceBundle> loadedBundle = Optional.of(ResourceBundle.getBundle(bundlePath.get(), locale));
LOGGER.debug("Successfully loaded ResourceBundle '%s'", bundlePath.get());
LOGGER.debug("Successfully loaded %s '%s' for '%s'", getClass().getName(), bundlePath.get(), locale);
return loadedBundle;
} catch (MissingResourceException e) {
LOGGER.warn("Unable to load ResourceBundle '%s'".formatted(bundlePath.get()), e);
LOGGER.warn("Unable to load %s '%s' for '%s'".formatted(getClass().getName(), bundlePath.get(), locale), e);
return Optional.empty();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ void initBean() {
}
}
resolvedPaths = finalPaths.toImmutableList();
log.debug("Resulting in %s", resolvedPaths);

}

Expand Down

0 comments on commit 389c77e

Please sign in to comment.