From: Driptaroop Das Date: Fri, 4 Jan 2019 07:41:52 +0000 (+0530) Subject: AafLurAndFish.java-logged exception X-Git-Tag: 1.0.26~63^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fdbcapi.git;a=commitdiff_plain;h=e2963e0ef41985faefc5ff5926d536b7f6a16142 AafLurAndFish.java-logged exception AafLurAndFish.java - Either log or rethrow this exception Issue-ID: DMAAP-928 Change-Id: Ib023e3e247f741191bf5639cb2ca740221a52f7c Signed-off-by: Driptaroop Das --- 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()); } }