diff --git a/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java b/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java index ac1e3cad52fb3..12ab9ae0b0bc9 100644 --- a/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java +++ b/pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java @@ -124,7 +124,12 @@ private static Provider loadConscryptProvider() { conscryptClazz = Class.forName("org.conscrypt.Conscrypt"); conscryptClazz.getMethod("checkAvailability").invoke(null); } catch (Throwable e) { - log.warn("Conscrypt isn't available. Using JDK default security provider.", e); + if (e.getCause() instanceof UnsatisfiedLinkError) { + log.warn("Conscrypt isn't available for {} {}. Using JDK default security provider.", + System.getProperty("os.name"), System.getProperty("os.arch")); + } else { + log.warn("Conscrypt isn't available. Using JDK default security provider.", e); + } return null; }