You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2016/05/19 10:24:35 UTC
svn commit: r1744551 -
/sling/trunk/bundles/commons/repoinit/oak-jcr/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java
Author: bdelacretaz
Date: Thu May 19 10:24:35 2016
New Revision: 1744551
URL: http://svn.apache.org/viewvc?rev=1744551&view=rev
Log:
SLING-5449 - more logging
Modified:
sling/trunk/bundles/commons/repoinit/oak-jcr/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java
Modified: sling/trunk/bundles/commons/repoinit/oak-jcr/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/repoinit/oak-jcr/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java?rev=1744551&r1=1744550&r2=1744551&view=diff
==============================================================================
--- sling/trunk/bundles/commons/repoinit/oak-jcr/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java (original)
+++ sling/trunk/bundles/commons/repoinit/oak-jcr/src/main/java/org/apache/sling/repoinit/jcr/JcrRepoInitOpVisitor.java Thu May 19 10:24:35 2016
@@ -124,9 +124,10 @@ public class JcrRepoInitOpVisitor implem
final String fullPath = parentPath + "/" + psd.getSegment();
try {
if(session.itemExists(fullPath)) {
- // TODO warn if primary type is not correct
+ log.info("Path already exists, nothing to do (and not checking its primary type for now): {}", fullPath);
} else {
final Node n = parentPath.equals("") ? session.getRootNode() : session.getNode(parentPath);
+ log.info("Creating node {} with primary type {}", fullPath, psd.getPrimaryType());
n.addNode(psd.getSegment(), psd.getPrimaryType());
}
} catch(Exception e) {