diff options
author | PatrikBuhr <patrik.buhr@est.tech> | 2022-01-04 17:10:12 +0100 |
---|---|---|
committer | PatrikBuhr <patrik.buhr@est.tech> | 2022-01-05 11:39:45 +0100 |
commit | c6cca20e3fd10842be0ca782d143dfa59d5c086e (patch) | |
tree | a48e469dce5823d4a9e78f8f0bfbbe7b0a91e17d /a1-policy-management/src | |
parent | b5fc06fa6df0d8299fb600f538c37003b149d165 (diff) |
A1 Policy Management
Prepare to step springboot fwk to version 2.6.2
Adding a log statement
Issue-ID: CCSDK-3495
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Change-Id: I33fcba31de2ffc259d3366056f979141816f0fb2
Diffstat (limited to 'a1-policy-management/src')
-rw-r--r-- | a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/PolicyType.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/PolicyType.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/PolicyType.java index 14c9f580..56f0c2a8 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/PolicyType.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/repository/PolicyType.java @@ -20,14 +20,20 @@ package org.onap.ccsdk.oran.a1policymanagementservice.repository; +import java.lang.invoke.MethodHandles; + import lombok.Builder; import lombok.Getter; import org.onap.ccsdk.oran.a1policymanagementservice.exceptions.ServiceException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; @Builder public class PolicyType { + private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); + @Getter private String id; @Getter @@ -114,6 +120,7 @@ public class PolicyType { try { return Version.ofString(getTypeId().getVersion()); } catch (ServiceException e) { + logger.warn("Not possible to get version from policy type ID {}, {}", getId(), e.getMessage()); return new Version(0, 0, 0); } } |