diff --git a/gradle.properties b/gradle.properties index d253fd82e..fc83497d1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=com.marklogic javadocsDir=../gh-pages-marklogic-java/javadocs -version=2.11.0 +version=2.11.0-dev diff --git a/src/main/java/com/marklogic/client/modulesloader/impl/AbstractStaticChecker.java b/src/main/java/com/marklogic/client/modulesloader/impl/AbstractStaticChecker.java index 5c2f247be..7400793ac 100644 --- a/src/main/java/com/marklogic/client/modulesloader/impl/AbstractStaticChecker.java +++ b/src/main/java/com/marklogic/client/modulesloader/impl/AbstractStaticChecker.java @@ -36,11 +36,14 @@ public void checkLoadedAssets(List assets) { */ protected void staticallyCheckModule(String uri) { try { - if (logger.isDebugEnabled()) { - logger.debug("Performing static check on module at URI: " + uri); + if (logger.isInfoEnabled()) { + logger.info("Performing static check on module at URI: " + uri); } String xquery = "let $uri := '" + uri + "' return " + buildXqueryForStaticallyCheckingModule(); executeQuery(xquery); + if (logger.isInfoEnabled()) { + logger.info("Finished static check on module at URI: " + uri); + } } catch (Exception re) { String message = "Static check failed for module at URI: " + uri + "; cause: " + re.getMessage(); throw new RuntimeException(message, re); @@ -61,12 +64,12 @@ protected void performBulkStaticCheck(List assets) { xquery += ") for $uri in $uris return " + buildXqueryForStaticallyCheckingModule(); try { - if (logger.isDebugEnabled()) { - logger.debug("Static checking all loaded modules"); + if (logger.isInfoEnabled()) { + logger.info("Static checking all loaded modules"); } executeQuery(xquery); - if (logger.isDebugEnabled()) { - logger.debug("Finished static checking all loaded modules"); + if (logger.isInfoEnabled()) { + logger.info("Finished static checking all loaded modules"); } } catch (Exception re) { String message = "Bulk static check failure, cause: " + re.getMessage(); diff --git a/src/main/java/com/marklogic/client/modulesloader/impl/DefaultModulesLoader.java b/src/main/java/com/marklogic/client/modulesloader/impl/DefaultModulesLoader.java index d0d73f101..d6a3d99df 100644 --- a/src/main/java/com/marklogic/client/modulesloader/impl/DefaultModulesLoader.java +++ b/src/main/java/com/marklogic/client/modulesloader/impl/DefaultModulesLoader.java @@ -553,4 +553,8 @@ public void setRestApiAssetLoader(RestApiAssetLoader restApiAssetLoader) { public void setStaticChecker(StaticChecker staticChecker) { this.staticChecker = staticChecker; } + + public StaticChecker getStaticChecker() { + return staticChecker; + } }