From 0768e0f6e3fe247b58c24da6bd852fad788b3384 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Wed, 8 May 2019 08:24:05 -0400 Subject: Change debug to info logs A lot of debug should really be info for logs. To assist with debugging but also really need to be there for auditing. Issue-ID: POLICY-1730 Change-Id: I5c41e056775c24797d257504e9c6495fa3127e45 Signed-off-by: Pamela Dragosh --- .../policy/xacml/pdp/application/guard/LegacyGuardTranslator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'applications/guard/src') diff --git a/applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/LegacyGuardTranslator.java b/applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/LegacyGuardTranslator.java index 3cbfcf73..2917aab2 100644 --- a/applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/LegacyGuardTranslator.java +++ b/applications/guard/src/main/java/org/onap/policy/xacml/pdp/application/guard/LegacyGuardTranslator.java @@ -109,7 +109,7 @@ public class LegacyGuardTranslator implements ToscaPolicyTranslator { // Check if we were able to create the rule // if (rule == null) { - LOGGER.warn("Failed to create rule"); + LOGGER.error("Failed to create rule"); return null; } // @@ -124,7 +124,7 @@ public class LegacyGuardTranslator implements ToscaPolicyTranslator { @Override public Request convertRequest(DecisionRequest request) { - LOGGER.debug("Converting Request {}", request); + LOGGER.info("Converting Request {}", request); try { return RequestParser.parseRequest(LegacyGuardPolicyRequest.createInstance(request)); } catch (IllegalArgumentException | IllegalAccessException | DataTypeException e) { @@ -138,7 +138,7 @@ public class LegacyGuardTranslator implements ToscaPolicyTranslator { @Override public DecisionResponse convertResponse(Response xacmlResponse) { - LOGGER.debug("Converting Response {}", xacmlResponse); + LOGGER.info("Converting Response {}", xacmlResponse); DecisionResponse decisionResponse = new DecisionResponse(); // // Iterate through all the results @@ -280,7 +280,7 @@ public class LegacyGuardTranslator implements ToscaPolicyTranslator { // Integer limit = parseInteger(properties.get("limit").toString()); if (limit == null) { - LOGGER.debug("Must have a limit value for frequency guard policy to be created"); + LOGGER.error("Must have a limit value for frequency guard policy to be created"); return null; } // -- cgit 1.2.3-korg