HADOOP-15851. Disable wildfly logs to the console.
Contributed by Vishwajeet Dusane.
This commit is contained in:
parent
e13a38f4bc
commit
ef9dc6c44c
@ -25,6 +25,7 @@
|
|||||||
import java.security.KeyManagementException;
|
import java.security.KeyManagementException;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import javax.net.ssl.SSLContext;
|
import javax.net.ssl.SSLContext;
|
||||||
import javax.net.ssl.SSLSocket;
|
import javax.net.ssl.SSLSocket;
|
||||||
@ -33,6 +34,7 @@
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.wildfly.openssl.OpenSSLProvider;
|
import org.wildfly.openssl.OpenSSLProvider;
|
||||||
|
import org.wildfly.openssl.SSL;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -118,6 +120,7 @@ private void initializeSSLContext(SSLChannelMode preferredChannelMode)
|
|||||||
switch (preferredChannelMode) {
|
switch (preferredChannelMode) {
|
||||||
case Default:
|
case Default:
|
||||||
try {
|
try {
|
||||||
|
java.util.logging.Logger.getLogger(SSL.class.getName()).setLevel(Level.WARNING);
|
||||||
ctx = SSLContext.getInstance("openssl.TLS");
|
ctx = SSLContext.getInstance("openssl.TLS");
|
||||||
ctx.init(null, null, null);
|
ctx.init(null, null, null);
|
||||||
channelMode = SSLChannelMode.OpenSSL;
|
channelMode = SSLChannelMode.OpenSSL;
|
||||||
|
Loading…
Reference in New Issue
Block a user