Commits

Sebastian Sdorra committed fffb6b0

improve logging

Comments (0)

Files changed (1)

scm-core/src/main/java/sonia/scm/repository/AbstractSimpleRepositoryHandler.java

     File repositoryDirectory = config.getRepositoryDirectory();
     File parent = directory.getParentFile();
 
-    while ((parent != null) && ! repositoryDirectory.equals(parent))
+    while ((parent != null) &&!repositoryDirectory.equals(parent))
     {
+      if (logger.isTraceEnabled())
+      {
+        logger.trace("check {} for existing repository", parent);
+      }
+
       if (isRepository(parent))
       {
+        if (logger.isErrorEnabled())
+        {
+          logger.error("parent path {} is a repository", parent);
+        }
+
         throw new RepositoryAllreadyExistExeption();
       }