diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api')
-rw-r--r-- | openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java index a3f7ca0626..ff3e19bd1b 100644 --- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java +++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-api/src/main/java/org/openecomp/core/converter/pnfd/model/Transformation.java @@ -27,6 +27,8 @@ import lombok.Getter; import lombok.Setter; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; /** * Represents a transformation from the PNFD transformation descriptor. @@ -35,6 +37,8 @@ import org.apache.commons.lang3.StringUtils; @Setter public class Transformation { + private static final Logger LOGGER = LoggerFactory.getLogger(Transformation.class); + private String name; private String description; private TransformationBlock block; @@ -90,7 +94,8 @@ public class Transformation { try { T value = clazz.cast(transformationProperty.get().getValue()); return Optional.of(value); - } catch (final ClassCastException ignored) { + } catch (final ClassCastException e) { + LOGGER.warn("Could not get property value.", e); return Optional.empty(); } } |