Skip to content

Commit

Permalink
[MNG-8140] Always tell why model was discarded as "invalid" (#1555)
Browse files Browse the repository at this point in the history
The info is there, but we redirect user to rinse-repeat in debug mode, that that creates a TON of output.

All is there, just tell why.

---

https://issues.apache.org/jira/browse/MNG-8140
  • Loading branch information
cstamas committed Jun 6, 2024
1 parent 741deac commit 66266e5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,7 @@ public void artifactDescriptorInvalid(RepositoryEvent event) {
buffer.append("The POM for ");
buffer.append(event.getArtifact());
buffer.append(" is invalid, transitive dependencies (if any) will not be available");

if (logger.isDebugEnabled()) {
logger.warn(buffer + ": " + event.getException().getMessage());
} else {
logger.warn(buffer + ", enable debug logging for more details");
}
logger.warn(buffer + ": " + event.getException().getMessage());
}

@Override
Expand Down

0 comments on commit 66266e5

Please sign in to comment.