diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-05-19 10:17:22 +0200 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-05-19 10:17:22 +0200 |
commit | 17cf0fc2bd8ead53beadafe0fda7605fbb27f618 (patch) | |
tree | e14d91b03f48ee0fee0cf3f3684e6edd095db7f9 /aai-els-onap-logging/src/main/java/org | |
parent | 7489da3c14975bfe4b53b8e6dc4a3438cc29bb97 (diff) |
ErrorLogHelper is not parsing all error codes
- do not parse error codes as int
Issue-ID: AAI-3853
Change-Id: I4cad636c58fbe14f59aecc8692f7c96d50686d18
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-els-onap-logging/src/main/java/org')
-rw-r--r-- | aai-els-onap-logging/src/main/java/org/onap/aai/logging/ErrorLogHelper.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/aai-els-onap-logging/src/main/java/org/onap/aai/logging/ErrorLogHelper.java b/aai-els-onap-logging/src/main/java/org/onap/aai/logging/ErrorLogHelper.java index 97548d99..bb2fe268 100644 --- a/aai-els-onap-logging/src/main/java/org/onap/aai/logging/ErrorLogHelper.java +++ b/aai-els-onap-logging/src/main/java/org/onap/aai/logging/ErrorLogHelper.java @@ -383,8 +383,7 @@ public class ErrorLogHelper { } private static ErrorObject getRestErrorObject(AAIException aaiException) { - final int restErrorCode = Integer.parseInt(aaiException.getErrorObject().getRESTErrorCode()); - return ErrorLogHelper.getErrorObject("AAI_" + restErrorCode); + return ErrorLogHelper.getErrorObject("AAI_" + aaiException.getErrorObject().getRESTErrorCode()); } public static Fault createPolicyFault(AAIException aaiException, String text, List<String> variables) { |