HADOOP-16174. Disable wildfly logs to the console.
Follow-on to HADOOP-15851.
Author: Denes Gerencser <dgerencser@cloudera.com>
(cherry picked from commit ddede7ae6f
)
This commit is contained in:
parent
96489069b0
commit
ede5cbd707
|
@ -120,9 +120,12 @@ public final class SSLSocketFactoryEx extends SSLSocketFactory {
|
||||||
switch (preferredChannelMode) {
|
switch (preferredChannelMode) {
|
||||||
case Default:
|
case Default:
|
||||||
try {
|
try {
|
||||||
java.util.logging.Logger.getLogger(SSL.class.getName()).setLevel(Level.WARNING);
|
java.util.logging.Logger logger = java.util.logging.Logger.getLogger(SSL.class.getName());
|
||||||
|
logger.setLevel(Level.WARNING);
|
||||||
ctx = SSLContext.getInstance("openssl.TLS");
|
ctx = SSLContext.getInstance("openssl.TLS");
|
||||||
ctx.init(null, null, null);
|
ctx.init(null, null, null);
|
||||||
|
// Strong reference needs to be kept to logger until initialization of SSLContext finished (see HADOOP-16174):
|
||||||
|
logger.setLevel(Level.INFO);
|
||||||
channelMode = SSLChannelMode.OpenSSL;
|
channelMode = SSLChannelMode.OpenSSL;
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
LOG.warn("Failed to load OpenSSL. Falling back to the JSSE default.");
|
LOG.warn("Failed to load OpenSSL. Falling back to the JSSE default.");
|
||||||
|
|
Loading…
Reference in New Issue