Skip to content

Commit

Permalink
Merge pull request #31379 from gsmet/improve-bean-discovery-mode-warning
Browse files Browse the repository at this point in the history
Include the artifact in the bean discovery mode warning
  • Loading branch information
gsmet authored Feb 27, 2023
2 parents a697b71 + ae647a6 commit c3a2256
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ private boolean possiblyBeanArchive(ApplicationArchive archive) {
|| text.contains("bean-discovery-mode=\"all\"")) {
LOGGER.warnf("Detected bean archive with bean discovery mode of 'all', "
+ "this is not portable in CDI Lite and is treated as 'annotated' in Quarkus! "
+ "Path to beans.xml: %s", pathVisit.getPath());
+ "Path to beans.xml: %s",
archive.getKey() != null ? archive.getKey().toGacString() + ":" + pathVisit.getPath()
: pathVisit.getPath());
}
} catch (IOException e) {
throw new UncheckedIOException(e);
Expand Down

0 comments on commit c3a2256

Please sign in to comment.