directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1402748 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
Date Sat, 27 Oct 2012 07:26:25 GMT
Author: kayyagari
Date: Sat Oct 27 07:26:25 2012
New Revision: 1402748

URL: http://svn.apache.org/viewvc?rev=1402748&view=rev
Log:
o removed printStackTrace call
o improved log and exception messages

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java?rev=1402748&r1=1402747&r2=1402748&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
Sat Oct 27 07:26:25 2012
@@ -317,7 +317,7 @@ public final class SchemaPartition exten
         }
         catch ( Exception e )
         {
-            e.printStackTrace();
+            LOG.warn( "Failed to get the children of entry {}", deleteContext.getDn() );
             return 0;
         }
     }
@@ -335,7 +335,7 @@ public final class SchemaPartition exten
 
         if ( nbChild > 1 )
         {
-            throw new LdapUnwillingToPerformException();
+            throw new LdapUnwillingToPerformException( "There are children under the entry
" + deleteContext.getDn() );
         }
 
         // The SchemaObject always exist when we reach this method.



Mime
View raw message