You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2021/03/01 18:04:11 UTC

[directory-fortress-core] branch jmeter updated: log don't throw runtime exception

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

smckinney pushed a commit to branch jmeter
in repository https://gitbox.apache.org/repos/asf/directory-fortress-core.git


The following commit(s) were added to refs/heads/jmeter by this push:
     new 42b128b  log don't throw runtime exception
42b128b is described below

commit 42b128b69ebc2e955d3de1dc9302a824dca0f1b9
Author: Shawn McKinney <sm...@symas.com>
AuthorDate: Mon Mar 1 12:04:05 2021 -0600

    log don't throw runtime exception
---
 .../directory/fortress/core/ldap/LdapConnectionProvider.java     | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/directory/fortress/core/ldap/LdapConnectionProvider.java b/src/main/java/org/apache/directory/fortress/core/ldap/LdapConnectionProvider.java
index 7fb4e81..5a9adec 100644
--- a/src/main/java/org/apache/directory/fortress/core/ldap/LdapConnectionProvider.java
+++ b/src/main/java/org/apache/directory/fortress/core/ldap/LdapConnectionProvider.java
@@ -273,7 +273,8 @@ public class LdapConnectionProvider
         }
         catch ( Exception e )
         {
-            throw new RuntimeException( e );
+            LOG.warn( "Error closing admin connection: " + e );
+            //throw new RuntimeException( e );
         }
     }
 
@@ -291,7 +292,8 @@ public class LdapConnectionProvider
         }
         catch ( Exception e )
         {
-            throw new RuntimeException( e );
+            LOG.warn( "Error closing log connection: " + e );
+            //throw new RuntimeException( e );
         }
     }
 
@@ -309,7 +311,8 @@ public class LdapConnectionProvider
         }
         catch ( Exception e )
         {
-            throw new RuntimeException( e );
+            LOG.warn( "Error closing user connection: " + e );
+            //throw new RuntimeException( e );
         }
     }