From 8e9fcb43a1b9c16be822b5528ba72dccd855e178 Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Tue, 7 Nov 2017 12:42:16 -0500 Subject: Change if transaction id is null generate id Issue-ID: AAI-454 Change-Id: If3cbb5ca2bb07426c4fe5643bac742e739ec0da8 Signed-off-by: Venkata Harish K Kajur --- aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'aai-core/src/main') diff --git a/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java b/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java index 627a2f8c..1e61c659 100644 --- a/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java +++ b/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java @@ -117,11 +117,10 @@ public class LoggingContext { public static void requestId(String requestId) throws AAIException { - if(requestId == null){ - throw new AAIException("AAI_4010"); - } - try { + if(requestId == null){ + throw new IllegalArgumentException(); + } if (requestId.contains(":")) { String[] uuidParts = requestId.split(":"); requestId = uuidParts[0]; -- cgit 1.2.3-korg