ソースを参照

Added logging of working directory location.

Luke Taylor 18 年 前
コミット
78e376312a

+ 3 - 1
core/src/main/java/org/springframework/security/config/ApacheDSContainer.java

@@ -81,7 +81,7 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
         ctxt = applicationContext;
     }
 
-    private static boolean deleteDir(File dir) {
+    private boolean deleteDir(File dir) {
         if (dir.isDirectory()) {
             String[] children = dir.list();
             for (int i=0; i < children.length; i++) {
@@ -98,6 +98,8 @@ class ApacheDSContainer implements InitializingBean, DisposableBean, Lifecycle,
     public void setWorkingDirectory(File workingDir) {
         Assert.notNull(workingDir);
 
+        logger.info("Setting working directory for LDAP: " + workingDir.getAbsolutePath());
+
         if (workingDir.exists()) {
             throw new IllegalArgumentException("The specified working directory '" + workingDir.getAbsolutePath() +
                     "' already exists. Another directory service instance may be using it or it may be from a " +