Skip to content

Commit d20bb2a

Browse files
chore: merge main into release [skip ci]
2 parents 38e6494 + db9cb00 commit d20bb2a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

microsphere-java-core/src/main/java/io/microsphere/classloading/ArtifactDetector.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ public List<Artifact> detect(@Nullable Set<URL> classPathURLs) {
119119
Artifact artifact = detect(classPathURL);
120120
if (artifact != null) {
121121
artifactList.add(artifact);
122-
break;
123122
}
124123
}
125124
return unmodifiableList(artifactList);
@@ -137,13 +136,15 @@ public Artifact detect(@Nonnull URL classPathURL) {
137136
for (ArtifactResourceResolver artifactResourceResolver : artifactResourceResolvers) {
138137
artifact = artifactResourceResolver.resolve(classPathURL);
139138
if (artifact != null) {
139+
if (logger.isTraceEnabled()) {
140+
logger.trace("The {} was detected from the URL of Class-Path : {}", artifact, classPathURL);
141+
}
140142
break;
141143
}
142144
}
143145
return artifact;
144146
}
145147

146-
147148
protected Set<URL> getClassPathURLs(boolean includedJdkLibraries) {
148149
Set<URL> urls = findAllClassPathURLs(classLoader);
149150
Set<URL> classPathURLs = new LinkedHashSet<>(urls);

0 commit comments

Comments
 (0)