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
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import java.net.SocketException;
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 javax.net.ssl.SSLSocketFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wildfly.openssl.OpenSSLProvider;
import org.wildfly.openssl.SSL;
/**
@ -118,6 +120,7 @@ public final class SSLSocketFactoryEx extends SSLSocketFactory {
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;