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

Commit 7d0e60e

Browse files
author
Rob Rudin
committed
#135 Little bit of logging for loading schemas
1 parent de23ae9 commit 7d0e60e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/marklogic/appdeployer/command/schemas/LoadSchemasCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.marklogic.appdeployer.command.SortOrderConstants;
77
import com.marklogic.client.DatabaseClient;
88
import com.marklogic.client.FailedRequestException;
9-
import com.marklogic.client.schemasloader.SchemasLoader;
109
import com.marklogic.client.schemasloader.impl.DefaultSchemasLoader;
1110

1211
public class LoadSchemasCommand extends AbstractCommand {
@@ -23,11 +22,12 @@ public void execute(CommandContext context) {
2322
protected void loadSchemasIntoSchemasDatabase(CommandContext context) {
2423
AppConfig config = context.getAppConfig();
2524
DatabaseClient client = config.newSchemasDatabaseClient();
26-
SchemasLoader schemasLoader = new DefaultSchemasLoader(client);
25+
DefaultSchemasLoader schemasLoader = new DefaultSchemasLoader(client);
2726
try {
2827
String schemasPath = config.getSchemasPath();
29-
logger.info("Loading schemas database data from path: " + schemasPath);
28+
logger.info("Loading schemas from path: " + schemasPath);
3029
schemasLoader.loadSchemas(schemasPath);
30+
logger.info("Finished loading schemas from: " + schemasPath);
3131
} catch (FailedRequestException fre) {
3232
if (fre.getMessage().contains("NOSUCHDB")) {
3333
logger.warn("Unable to load schemas because no schemas database exists; cause: " + fre.getMessage());

0 commit comments

Comments
 (0)