X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2Fcontrollers%2FPolicyController.java;h=b5388610caaec61ce538bfa77a0521344271ceee;hb=8d10bf1fee8093ec4c2a3d3530fded002daf83b6;hp=49d7702833e0d5ffd1d2c4d46d9ccd2022b9fd46;hpb=ba50f8809edc7d49a74021e25b4094f4c3174b26;p=nonrtric.git diff --git a/policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyController.java b/policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyController.java index 49d77028..b5388610 100644 --- a/policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyController.java +++ b/policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyController.java @@ -269,6 +269,7 @@ public class PolicyController { RejectionException e = new RejectionException("Policy cannot change RIC, policyId: " + current.id() + // ", RIC name: " + current.ric().name() + // ", new name: " + policy.ric().name(), HttpStatus.CONFLICT); + logger.debug("Request rejected, {}", e.getMessage()); return Mono.error(e); } return Mono.just("OK"); @@ -276,6 +277,7 @@ public class PolicyController { private Mono checkSupportedType(Ric ric, PolicyType type) { if (!ric.isSupportingType(type.name())) { + logger.debug("Request rejected, type not supported, RIC: {}", ric); RejectionException e = new RejectionException( "Type: " + type.name() + " not supported by RIC: " + ric.name(), HttpStatus.NOT_FOUND); return Mono.error(e); @@ -287,6 +289,7 @@ public class PolicyController { if (ric.getState() == Ric.RicState.AVAILABLE) { return Mono.just("OK"); } else { + logger.debug("Request rejected RIC not IDLE, ric: {}", ric); RejectionException e = new RejectionException( "Ric is not operational, RIC name: " + ric.name() + ", state: " + ric.getState(), HttpStatus.LOCKED); return Mono.error(e);