AafLurAndFish.java-logged exception 67/75267/1
authorDriptaroop Das <driptaroop.das@in.ibm.com>
Fri, 4 Jan 2019 07:41:52 +0000 (13:11 +0530)
committerDriptaroop Das <driptaroop.das@in.ibm.com>
Fri, 4 Jan 2019 07:42:09 +0000 (13:12 +0530)
AafLurAndFish.java - Either log or rethrow this exception

Issue-ID: DMAAP-928
Change-Id: Ib023e3e247f741191bf5639cb2ca740221a52f7c
Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
src/main/java/org/onap/dmaap/dbcapi/authentication/AafLurAndFish.java

index 5b4d7de..9defe34 100644 (file)
@@ -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());
            }
 }