diff options
author | varun gudisena <vg411h@att.com> | 2018-09-25 16:51:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-25 16:51:42 +0000 |
commit | 74d55c254031a25f06f106291e8506eb53bd813d (patch) | |
tree | d51e6a38e5adfe47719b70aac86cbd9a77d22a2c /src | |
parent | 30e5f1d5366905fbb3e01c2b8a0a069f464fcc3e (diff) | |
parent | cc850447295af953bdcf07521130555d8a877e85 (diff) |
Merge "Improved Perm and Grant logging"
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/aaf/AafService.java | 5 |
1 files changed, 5 insertions, 0 deletions
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; |