From 3e139cdbafc944932407ae349da0c54fbf433e50 Mon Sep 17 00:00:00 2001 From: bmaehr Date: Sat, 7 Mar 2020 20:47:45 +0100 Subject: [PATCH] [MPIR-374] No logging of stacktrace in non debug mode --- .../renderer/DependencyManagementRenderer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependencyManagementRenderer.java b/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependencyManagementRenderer.java index e22083bd..77b7d359 100644 --- a/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependencyManagementRenderer.java +++ b/src/main/java/org/apache/maven/report/projectinfo/dependencies/renderer/DependencyManagementRenderer.java @@ -273,7 +273,14 @@ private String[] getDependencyRow( Dependency dependency, boolean hasClassifier } catch ( ProjectBuildingException e ) { - log.warn( "Unable to create Maven project for " + artifact.getId() + " from repository.", e ); + if ( log.isDebugEnabled() ) + { + log.warn( "Unable to create Maven project for " + artifact.getId() + " from repository.", e ); + } + else + { + log.warn( "Unable to create Maven project for " + artifact.getId() + " from repository." ); + } } String artifactIdCell = ProjectInfoReportUtils.getArtifactIdCell( artifact.getArtifactId(), url );