From 9103daf39dc23c784c2c6bacb71feb3e898094b2 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Tue, 2 Feb 2010 21:35:57 +0000 Subject: [PATCH] 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. --- .../common/config/TenantBindingConfigReader.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.47.3