From 3b1119ca51ea0de0ff28b76b916fa8b0cba54fcf Mon Sep 17 00:00:00 2001 From: Tal Gitelman Date: Mon, 7 Aug 2017 11:52:08 +0300 Subject: [sdc] - logging entries for OS debugging purposes Change-Id: I3c502a03833f9ddf5e2e919542d13a3b6691e279 Signed-off-by: Tal Gitelman --- .../sdc/be/components/impl/ComponentBusinessLogic.java | 11 +++++++++-- .../sdc/be/components/impl/ResourceBusinessLogic.java | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'catalog-be/src') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentBusinessLogic.java index 21f7b3ab7c..33180cd35e 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentBusinessLogic.java @@ -905,11 +905,18 @@ public abstract class ComponentBusinessLogic extends BaseBusinessLogic { } else { genericTypeToscaName = component.fetchGenericTypeToscaNameFromConfig(); } - if(null == genericTypeToscaName) + log.debug("Fetching generic tosca name {}", genericTypeToscaName); + if(null == genericTypeToscaName) { + log.debug("Failed to fetch certified node type by tosca resource name {}", genericTypeToscaName); return Either.right(componentsUtils.getResponseFormat(ActionStatus.GENERAL_ERROR)); + } + Either findLatestGeneric = toscaOperationFacade.getLatestCertifiedNodeTypeByToscaResourceName(genericTypeToscaName); - if(findLatestGeneric.isRight()) + if(findLatestGeneric.isRight()){ + log.debug("Failed to fetch certified node type by tosca resource name {}", genericTypeToscaName); return Either.right(componentsUtils.getResponseFormat(ActionStatus.GENERIC_TYPE_NOT_FOUND, component.assetType(), genericTypeToscaName)); + } + Resource genericTypeResource = findLatestGeneric.left().value(); component.setDerivedFromGenericInfo(genericTypeResource); return Either.left(genericTypeResource); diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java index a8d841387b..51e64ca8e1 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java @@ -3567,10 +3567,11 @@ public class ResourceBusinessLogic extends ComponentBusinessLogic { Map> instInputs = new HashMap<>(); for (Entry entry : uploadResInstancesMap.entrySet()) { + log.trace("Processing entry: {}", entry); UploadComponentInstanceInfo uploadComponentInstanceInfo = entry.getValue(); ComponentInstance currentCompInstance = null; for (ComponentInstance compInstance : componentInstancesList) { - + log.trace("Processing component instance: {}", compInstance); if (compInstance.getName().equals(uploadComponentInstanceInfo.getName())) { currentCompInstance = compInstance; break; -- cgit 1.2.3-korg