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

Commit 2a2e548

Browse files
committed
#226 Added logging for when the test database is created/updated
1 parent 804712b commit 2a2e548

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/marklogic/appdeployer/command/databases/DeployContentDatabasesCommand.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public void execute(CommandContext context) {
4848

4949
AppConfig appConfig = context.getAppConfig();
5050
if (appConfig.isTestPortSet()) {
51+
if (logger.isInfoEnabled()) {
52+
logger.info(format("Creating/updating test content database '%s' associated with test REST server on port %d",
53+
appConfig.getTestRestServerName(), appConfig.getTestRestPort()));
54+
}
5155
String payload = getPayload(context);
5256
if (payload != null) {
5357
DatabaseManager dbMgr = new DatabaseManager(context.getManageClient());
@@ -56,6 +60,9 @@ public void execute(CommandContext context) {
5660
if (shouldCreateForests(context, payload)) {
5761
buildDeployForestsCommand(payload, receipt, context).execute(context);
5862
}
63+
} else {
64+
logger.warn(format("Could not determine what payload to use for creating/updating test content database '%s'",
65+
appConfig.getTestRestServerName()));
5966
}
6067
}
6168
}

0 commit comments

Comments
 (0)