From e2963e0ef41985faefc5ff5926d536b7f6a16142 Mon Sep 17 00:00:00 2001 From: Driptaroop Das Date: Fri, 4 Jan 2019 13:11:52 +0530 Subject: [PATCH] AafLurAndFish.java-logged exception AafLurAndFish.java - Either log or rethrow this exception Issue-ID: DMAAP-928 Change-Id: Ib023e3e247f741191bf5639cb2ca740221a52f7c Signed-off-by: Driptaroop Das --- .../java/org/onap/dmaap/dbcapi/authentication/AafLurAndFish.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/onap/dmaap/dbcapi/authentication/AafLurAndFish.java b/src/main/java/org/onap/dmaap/dbcapi/authentication/AafLurAndFish.java index 5b4d7de..9defe34 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/authentication/AafLurAndFish.java +++ b/src/main/java/org/onap/dmaap/dbcapi/authentication/AafLurAndFish.java @@ -3,7 +3,7 @@ * org.onap.dmaap * ================================================================================ * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. - * Modifications Copyright (C) 2018 IBM. + * Modifications Copyright (C) 2019 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -98,10 +98,10 @@ public class AafLurAndFish implements ApiAuthorizationCheckInterface { try { alaf.check("mmanager@people.osaaf.org", "demo123456!", p); } catch (AuthenticationErrorException aee ) { + logger.error(aee); logger.error( "Check failed for: " + p.toJSON()); - System.exit(-1); + System.exit(-1); } - logger.info( "Check succeeded for: " + p.toJSON() ); - + logger.info("Check succeeded for: " + p.toJSON()); } } -- 2.16.6