From cc850447295af953bdcf07521130555d8a877e85 Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Mon, 24 Sep 2018 15:29:25 -0400 Subject: Improved Perm and Grant logging Change-Id: I598b3d8cab6d25b579850ea4589803333a52e601 Signed-off-by: dglFromAtt Issue-ID: DMAAP-826 --- src/main/java/org/onap/dmaap/dbcapi/aaf/AafService.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main/java/org/onap/dmaap/dbcapi/aaf/AafService.java b/src/main/java/org/onap/dmaap/dbcapi/aaf/AafService.java index 781932b..112ab11 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/aaf/AafService.java +++ b/src/main/java/org/onap/dmaap/dbcapi/aaf/AafService.java @@ -85,6 +85,7 @@ public class AafService extends BaseLoggingClass { private void initAafService( ServiceType t ) { DmaapConfig p = (DmaapConfig)DmaapConfig.getConfig(); useAAF= "true".equalsIgnoreCase(p.getProperty("UseAAF", "false")); + logger.info( "AafService initAafService: useAAF=" + useAAF); ctype = t; aaf = new AafConnection( getCred( true ) ); @@ -95,7 +96,9 @@ public class AafService extends BaseLoggingClass { int rc = -1; logger.info( "entry: addPerm() " ); String pURL = aafURL + "authz/perm"; + logger.info( "addPerm=" + useAAF ); if ( useAAF ) { + logger.info( "addPerm: " + perm.toJSON()); rc = aaf.postAaf( perm, pURL ); } else { rc = 201; @@ -125,7 +128,9 @@ public class AafService extends BaseLoggingClass { logger.info( "entry: addGrant() " ); String pURL = aafURL + "authz/role/perm"; + logger.info( "addGrant: useAAF=" + useAAF ); if ( useAAF ) { + logger.info( "addGrant: " + grant.toJSON() ); rc = aaf.postAaf( grant, pURL ); } else { rc = 201; -- cgit 1.2.3-korg