From: Aron Roberts Date: Tue, 2 Feb 2010 21:35:57 +0000 (+0000) Subject: CSPACE-375: Trivial tweaks to user-visible messages relating to workspace detection... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=9103daf39dc23c784c2c6bacb71feb3e898094b2;p=tmp%2Fjakarta-migration.git CSPACE-375: Trivial tweaks to user-visible messages relating to workspace detection and creation, including clarification of automatic workspace creation attempts by emitting two WARN-level messages, and uniform capitalization. --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java b/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java index 7e01ae27b..4a3b8a830 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java +++ b/services/common/src/main/java/org/collectionspace/services/common/config/TenantBindingConfigReader.java @@ -133,7 +133,7 @@ public class TenantBindingConfigReader if (serviceBinding.getRepositoryClient() == null) { //no repository needed for this service...skip if (logger.isDebugEnabled()) { - logger.debug("no repository configured for service " + serviceName + + logger.debug("No repository configured for service " + serviceName + " skipping..."); } continue; @@ -146,20 +146,20 @@ public class TenantBindingConfigReader if (clientType.equals(ClientType.JAVA)) { workspaceId = workspaceIds.get(workspace); if (workspaceId == null) { - logger.warn("failed to retrieve workspace id for " + workspace + - " trying to create a new workspace..."); + logger.warn("Failed to retrieve workspace ID for " + workspace); + logger.warn("Trying to create a new workspace ..."); workspaceId = repositoryClient.createWorkspace( tenantBinding.getRepositoryDomain(), serviceBinding.getName()); if (workspaceId == null) { - logger.warn("failed to create workspace for " + workspace); + logger.warn("Failed to create workspace for " + workspace); continue; } } } else { workspaceId = serviceBinding.getRepositoryWorkspaceId(); if (workspaceId == null || "".equals(workspaceId)) { - logger.error("could not find workspace id for " + workspace); + logger.error("Could not find workspace ID for " + workspace); //FIXME: should we throw an exception here? continue; }