X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=applications%2Fcommon%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpdp%2Fxacml%2Fapplication%2Fcommon%2FXacmlPolicyUtils.java;fp=applications%2Fcommon%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpdp%2Fxacml%2Fapplication%2Fcommon%2FXacmlPolicyUtils.java;h=c12aae2ce1a3a0d14abdc82453af12e4a545d0b1;hb=0768e0f6e3fe247b58c24da6bd852fad788b3384;hp=2a5f21f031326e2d03f90832360c3746059b11f9;hpb=6f8206accd4eb94b19eacf49497675f0cc1b4f06;p=policy%2Fxacml-pdp.git diff --git a/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtils.java b/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtils.java index 2a5f21f0..c12aae2c 100644 --- a/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtils.java +++ b/applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/XacmlPolicyUtils.java @@ -367,14 +367,14 @@ public class XacmlPolicyUtils { * @throws IOException If unable to read file */ public static Properties loadXacmlProperties(Path propertyPath) throws IOException { - LOGGER.debug("Loading xacml properties {}", propertyPath); + LOGGER.info("Loading xacml properties {}", propertyPath); try (InputStream is = Files.newInputStream(propertyPath)) { Properties properties = new Properties(); properties.load(is); - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("Loaded xacml properties {} {}", System.lineSeparator(), properties); + if (LOGGER.isInfoEnabled()) { + LOGGER.info("Loaded xacml properties {} {}", System.lineSeparator(), properties); for (Entry entrySet : properties.entrySet()) { - LOGGER.debug("{} -> {}", entrySet.getKey(), entrySet.getValue()); + LOGGER.info("{} -> {}", entrySet.getKey(), entrySet.getValue()); } } return properties; @@ -387,8 +387,8 @@ public class XacmlPolicyUtils { * @throws IOException If unable to store the file. */ public static void storeXacmlProperties(Properties properties, Path propertyPath) throws IOException { - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("Storing xacml properties {} {} {}", properties, System.lineSeparator(), propertyPath); + if (LOGGER.isInfoEnabled()) { + LOGGER.info("Storing xacml properties {} {} {}", properties, System.lineSeparator(), propertyPath); } try (OutputStream os = Files.newOutputStream(propertyPath)) { String strComments = "#"; @@ -443,7 +443,7 @@ public class XacmlPolicyUtils { // Get a file // Path rootPath = Paths.get(properties.getProperty(root + DOT_FILE_SUFFIX)); - LOGGER.debug("Root file {} {}", rootPath, rootPath.getFileName()); + LOGGER.info("Root file {} {}", rootPath, rootPath.getFileName()); // // Construct new path for the root policy // @@ -466,7 +466,7 @@ public class XacmlPolicyUtils { // Get a file // Path refPath = Paths.get(properties.getProperty(referenced + DOT_FILE_SUFFIX)); - LOGGER.debug("Referenced file {} {}", refPath, refPath.getFileName()); + LOGGER.info("Referenced file {} {}", refPath, refPath.getFileName()); // // Construct new path for the root policy //