Repository: logging-log4j2
Updated Branches:
  refs/heads/master 8b9962c64 -> 240900062


Log exceptions to status logger.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/24090006
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/24090006
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/24090006

Branch: refs/heads/master
Commit: 24090006271cdcdd16a252c1fc708bfb68145885
Parents: 8b9962c
Author: ggregory <[email protected]>
Authored: Wed Dec 30 17:12:25 2015 -0800
Committer: ggregory <[email protected]>
Committed: Wed Dec 30 17:12:25 2015 -0800

----------------------------------------------------------------------
 .../log4j/core/net/ssl/SslConfiguration.java        | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/24090006/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/SslConfiguration.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/SslConfiguration.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/SslConfiguration.java
index 43464e5..a978f0b 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/SslConfiguration.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/SslConfiguration.java
@@ -133,7 +133,7 @@ public class SslConfiguration {
         try {
             return SSLContext.getDefault();
         } catch (final NoSuchAlgorithmException e) {
-            LOGGER.error("Failed to create an SSLContext with default 
configuration");
+            LOGGER.error("Failed to create an SSLContext with default 
configuration", e);
             return null;
         }
     }
@@ -158,11 +158,11 @@ public class SslConfiguration {
             return newSslContext;
         }
         catch (final NoSuchAlgorithmException e) {
-            LOGGER.error("No Provider supports a TrustManagerFactorySpi 
implementation for the specified protocol");
+            LOGGER.error("No Provider supports a TrustManagerFactorySpi 
implementation for the specified protocol", e);
             throw new TrustStoreConfigurationException(e);
         }
         catch (final KeyManagementException e) {
-            LOGGER.error("Failed to initialize the SSLContext");
+            LOGGER.error("Failed to initialize the SSLContext", e);
             throw new KeyStoreConfigurationException(e);
         }
     }
@@ -176,10 +176,10 @@ public class SslConfiguration {
             return trustStoreConfig.initTrustManagerFactory();
         }
         catch (final NoSuchAlgorithmException e) {
-            LOGGER.error("The specified algorithm is not available from the 
specified provider");
+            LOGGER.error("The specified algorithm is not available from the 
specified provider", e);
             throw new TrustStoreConfigurationException(e);
         } catch (final KeyStoreException e) {
-            LOGGER.error("Failed to initialize the TrustManagerFactory");
+            LOGGER.error("Failed to initialize the TrustManagerFactory", e);
             throw new TrustStoreConfigurationException(e);
         }
     }
@@ -193,13 +193,13 @@ public class SslConfiguration {
             return keyStoreConfig.initKeyManagerFactory();
         }
         catch (final NoSuchAlgorithmException e) {
-            LOGGER.error("The specified algorithm is not available from the 
specified provider");
+            LOGGER.error("The specified algorithm is not available from the 
specified provider", e);
             throw new KeyStoreConfigurationException(e);
         } catch (final KeyStoreException e) {
-            LOGGER.error("Failed to initialize the TrustManagerFactory");
+            LOGGER.error("Failed to initialize the TrustManagerFactory", e);
             throw new KeyStoreConfigurationException(e);
         } catch (final UnrecoverableKeyException e) {
-            LOGGER.error("The key cannot be recovered (e.g. the given password 
is wrong)");
+            LOGGER.error("The key cannot be recovered (e.g. the given password 
is wrong)", e);
             throw new KeyStoreConfigurationException(e);
         }
     }

Reply via email to