From c57a1bdb2d4471af543399f46d344802986c6cd9 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sun, 19 Feb 2017 13:34:15 +0100 Subject: [PATCH] Log used native library by netty-tcnative Motivation: As netty-tcnative can be build against different native libraries and versions we should log the used one. Modifications: Log the used native library after netty-tcnative was loaded. Result: Easier to understand what native SSL library was used. --- handler/src/main/java/io/netty/handler/ssl/OpenSsl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java b/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java index c871f197a1..ea4fb728e6 100644 --- a/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java +++ b/handler/src/main/java/io/netty/handler/ssl/OpenSsl.java @@ -112,6 +112,8 @@ public final class OpenSsl { UNAVAILABILITY_CAUSE = cause; if (cause == null) { + logger.debug("netty-tcnative using native library: {}", SSL.versionString()); + final Set availableOpenSslCipherSuites = new LinkedHashSet(128); boolean supportsKeyManagerFactory = false; boolean useKeyManagerFactory = false;