aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java b/vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java
index ef62bf9f6..1870a0024 100644
--- a/vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java
+++ b/vid-app-common/src/main/java/org/onap/vid/services/VidServiceImpl.java
@@ -127,6 +127,7 @@ public class VidServiceImpl implements VidService {
try {
return serviceModelCache.get(uuid);
} catch (ExecutionException e) {
+ LOG.error("Failed to get service info from cache ", e.getLocalizedMessage());
if (e.getCause() instanceof AsdcCatalogException) {
throw (AsdcCatalogException) e.getCause();
} else if (e.getCause() instanceof NullServiceModelException) {
@@ -155,6 +156,7 @@ public class VidServiceImpl implements VidService {
try {
return toscaParser.makeServiceModel(serviceCsar, asdcServiceMetadata);
} catch (SdcToscaParserException e) {
+ LOG.error("Failed to create service model using sdc tosca library", e);
return tosca.makeServiceModel(uuid, serviceCsar, asdcServiceMetadata);
}
}