From aad253f25679d086630690dfc2432d41fef6adad Mon Sep 17 00:00:00 2001 From: "James R. Perkins" Date: Wed, 6 Dec 2023 17:27:37 -0800 Subject: [PATCH] [WFMP-230] Log fallback channel resolution messages as debug instead of warnings. https://issues.redhat.com/browse/WFMP-230 Signed-off-by: James R. Perkins --- .../ChannelMavenArtifactRepositoryManager.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java b/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java index 43de7c29..dfe171be 100644 --- a/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java +++ b/plugin/src/main/java/org/wildfly/plugin/provision/ChannelMavenArtifactRepositoryManager.java @@ -107,8 +107,10 @@ public void resolve(MavenArtifact artifact) throws MavenUniverseException { } } if (!requireChannel) { - log.warn("Resolution of artifact " + artifact.getGroupId() + ":" + - artifact.getArtifactId() + " failed using configured channels. Using original version."); + if (log.isDebugEnabled()) { + log.debug("Resolution of artifact " + artifact.getGroupId() + ":" + + artifact.getArtifactId() + " failed using configured channels. Using original version."); + } // unable to resolve the artifact through the channel. // if the version is defined, let's resolve it directly if (artifact.getVersion() == null) { @@ -116,9 +118,11 @@ public void resolve(MavenArtifact artifact) throws MavenUniverseException { throw new MavenUniverseException(ex.getLocalizedMessage(), ex); } try { - log.warn("Using version " + artifact.getVersion() + - " to resolve artifact " + artifact.getGroupId() + ":" + - artifact.getArtifactId()); + if (log.isDebugEnabled()) { + log.debug("Using version " + artifact.getVersion() + + " to resolve artifact " + artifact.getGroupId() + ":" + + artifact.getArtifactId()); + } org.wildfly.channel.MavenArtifact mavenArtifact = channelSession.resolveDirectMavenArtifact( artifact.getGroupId(), artifact.getArtifactId(), artifact.getExtension(), artifact.getClassifier(), artifact.getVersion());