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

Commit b99566b

Browse files
author
Rob Rudin
committed
#151 Added logging for deploying custom forests
1 parent 02f5fc5 commit b99566b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/marklogic/appdeployer/command/forests/DeployCustomForestsCommand.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ public void execute(CommandContext context) {
3838
}
3939

4040
protected void processDirectory(File dir, CommandContext context) {
41+
if (logger.isInfoEnabled()) {
42+
logger.info("Processing custom forest files in directory: " + dir.getAbsolutePath());
43+
}
4144
ForestManager mgr = new ForestManager(context.getManageClient());
4245
for (File f : listFilesInDirectory(dir)) {
46+
if (logger.isInfoEnabled()) {
47+
logger.info("Processing forests in file: " + f.getAbsolutePath());
48+
}
4349
String payload = copyFileToString(f, context);
4450
mgr.saveJsonForests(payload);
4551
}

0 commit comments

Comments
 (0)