Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 320fd9e

Browse files
committed
#80 Changing modules logging to debug instead of info
Info is too chatty when running mlWatch in ml-gradle
1 parent b961945 commit 320fd9e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/java/com/marklogic/client/ext/modulesloader/impl/BaseModulesFinder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ protected List<Resource> findResources(String moduleType, String basePath, Strin
121121
finalPath += "/";
122122
}
123123
finalPath += path;
124-
if (logger.isInfoEnabled()) {
125-
logger.info("Finding " + moduleType + " at path: " + finalPath);
124+
if (logger.isDebugEnabled()) {
125+
logger.debug("Finding " + moduleType + " at path: " + finalPath);
126126
}
127127
Resource[] r = resolver.getResources(finalPath);
128128
list.addAll(Arrays.asList(r));

src/main/java/com/marklogic/client/ext/modulesloader/impl/DefaultModulesLoader.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public void initializeDefaultTaskExecutor() {
109109
* passed into a constructor for this class.
110110
*/
111111
public Set<Resource> loadModules(String baseDir, ModulesFinder modulesFinder, DatabaseClient client) {
112-
if (logger.isInfoEnabled()) {
113-
logger.info("Loading modules from base directory: " + baseDir);
112+
if (logger.isDebugEnabled()) {
113+
logger.debug("Loading modules from base directory: " + baseDir);
114114
}
115115
setDatabaseClient(client);
116116

@@ -135,8 +135,8 @@ public Set<Resource> loadModules(String baseDir, ModulesFinder modulesFinder, Da
135135

136136
waitForTaskExecutorToFinish();
137137

138-
if (logger.isInfoEnabled()) {
139-
logger.info("Finished loading modules from base directory: " + baseDir);
138+
if (logger.isDebugEnabled()) {
139+
logger.debug("Finished loading modules from base directory: " + baseDir);
140140
}
141141

142142
return loadedModules;
@@ -253,8 +253,8 @@ protected void loadAssets(Modules modules, Set<Resource> loadedModules) {
253253
}
254254
}
255255

256-
if (logger.isInfoEnabled()) {
257-
logger.info("Loading asset modules from paths: " + Arrays.asList(paths));
256+
if (logger.isDebugEnabled()) {
257+
logger.debug("Loading asset modules from paths: " + Arrays.asList(paths));
258258
}
259259

260260
if (includeFilenamePattern != null) {

0 commit comments

Comments
 (0)