joerghoh commented on code in PR #60:
URL:
https://github.com/apache/sling-org-apache-sling-jcr-repoinit/pull/60#discussion_r1963823059
##########
src/main/java/org/apache/sling/jcr/repoinit/impl/RepositoryInitializer.java:
##########
@@ -115,6 +118,8 @@ public void processRepository(SlingRepository repo) throws
RepositoryException {
throw new RepoInitException("Error executing repoinit
from " + reference, e);
}
}
+ Duration duration = Duration.between(start, Instant.now());
Review Comment:
The log message should be written only if the execution is successful; in
case the execution fails (by an exception thrown from ``applyOperations``) the
actual timing is less relevant,also because the execution is aborted and the
repository initialization will fail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]