HADOOP-15851. Disable wildfly logs to the console.

Contributed by Vishwajeet Dusane.
This commit is contained in:
Steve Loughran 2018-10-15 22:53:55 +01:00
parent e13a38f4bc
commit ef9dc6c44c
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0

View File

@ -25,6 +25,7 @@
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.logging.Level;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
@ -33,6 +34,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wildfly.openssl.OpenSSLProvider;
import org.wildfly.openssl.SSL;
/**
@ -118,6 +120,7 @@ private void initializeSSLContext(SSLChannelMode preferredChannelMode)
switch (preferredChannelMode) {
case Default:
try {
java.util.logging.Logger.getLogger(SSL.class.getName()).setLevel(Level.WARNING);
ctx = SSLContext.getInstance("openssl.TLS");
ctx.init(null, null, null);
channelMode = SSLChannelMode.OpenSSL;