Reduce HTTP debug logging when building image

Update `BuildImageMojo` so that commons HTTP wire logging is configured
to ERROR. Without this update, running `mvn -X` will produce a great
deal of logging since by default HTTP Client logs all bytes transfered
at DEBUG and Maven will enable DEBUG for all logs.

Closes gh-22674
This commit is contained in:
Phillip Webb
2020-08-19 13:20:06 -07:00
parent 73038267a0
commit 8fd9c685a2

View File

@@ -65,6 +65,10 @@ public class BuildImageMojo extends AbstractPackagerMojo {
private static final String BUILDPACK_JVM_VERSION_KEY = "BP_JVM_VERSION";
static {
System.setProperty("org.slf4j.simpleLogger.log.org.apache.http.wire", "ERROR");
}
/**
* Directory containing the JAR.
* @since 2.3.0