You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2019/06/07 17:34:46 UTC

[hadoop] 02/09: HADOOP-15851. Disable wildfly logs to the console. Contributed by Vishwajeet Dusane.

This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git

commit 96489069b0bf84b6ed979dff103088dfd2c13932
Author: Steve Loughran <st...@apache.org>
AuthorDate: Mon Oct 15 22:53:55 2018 +0100

    HADOOP-15851. Disable wildfly logs to the console.
    Contributed by Vishwajeet Dusane.
    
    (cherry picked from commit ef9dc6c44c686e836bb25e31ff355cff80572d23)
---
 .../java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java
index 00e7786..6d3e4ea 100644
--- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java
+++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/SSLSocketFactoryEx.java
@@ -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;


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org