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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user