[MNG-8140] Always tell why model was discarded as "invalid" (#1555)

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
This commit is contained in:
Tamas Cservenak 2024-06-06 21:07:44 +02:00 committed by GitHub
parent 741deac98f
commit 66266e5315
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 6 deletions

View File

@ -96,12 +96,7 @@ class LoggingRepositoryListener extends AbstractRepositoryListener {
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