From: dglFromAtt Date: Mon, 24 Sep 2018 19:29:25 +0000 (-0400) Subject: Improved Perm and Grant logging X-Git-Tag: 1.0.16~2^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F68913%2F1;p=dmaap%2Fdbcapi.git Improved Perm and Grant logging Change-Id: I598b3d8cab6d25b579850ea4589803333a52e601 Signed-off-by: dglFromAtt Issue-ID: DMAAP-826 --- 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;