HADOOP-16174. Disable wildfly logs to the console.
Follow-on to HADOOP-15851. Author: Denes Gerencser <dgerencser@cloudera.com>
This commit is contained in:
parent
bb8ad096e7
commit
ddede7ae6f
@ -120,9 +120,12 @@ private void initializeSSLContext(SSLChannelMode preferredChannelMode)
|
||||
switch (preferredChannelMode) {
|
||||
case Default:
|
||||
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.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;
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
LOG.warn("Failed to load OpenSSL. Falling back to the JSSE default.");
|
||||
|
Loading…
Reference in New Issue
Block a user