You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ea...@apache.org on 2022/04/21 05:28:19 UTC

[dubbo] branch 3.0 updated: Degrade log level to reduce tls logs (#9948)

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

earthchen pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 4fd5036bec Degrade log level to reduce tls logs (#9948)
4fd5036bec is described below

commit 4fd5036bec64d44f9a31ec5fd526f8a81267e5ac
Author: GuoHao <gu...@gmail.com>
AuthorDate: Thu Apr 21 13:28:09 2022 +0800

    Degrade log level to reduce tls logs (#9948)
    
    * Degrade log level to reduce tls logs
    
    * Fix if else
    
    * Remove if
---
 .../src/main/java/org/apache/dubbo/remoting/api/SslContexts.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/SslContexts.java b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/SslContexts.java
index 6e458cb1ea..e937c8de03 100644
--- a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/SslContexts.java
+++ b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/SslContexts.java
@@ -120,10 +120,11 @@ public class SslContexts {
      */
     private static SslProvider findSslProvider() {
         if (OpenSsl.isAvailable()) {
-            logger.info("Using OPENSSL provider.");
+            logger.debug("Using OPENSSL provider.");
             return SslProvider.OPENSSL;
-        } else if (checkJdkProvider()) {
-            logger.info("Using JDK provider.");
+        }
+        if (checkJdkProvider()) {
+            logger.debug("Using JDK provider.");
             return SslProvider.JDK;
         }
         throw new IllegalStateException(