From: liamfallon Date: Wed, 7 Feb 2018 14:14:46 +0000 (+0000) Subject: Log thrown exception in PIPEngineGetHistory X-Git-Tag: v1.2.0~33 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ca9c3d5676fa3d62e4c6a02318c253c55b39adce;p=policy%2Fdrools-applications.git Log thrown exception in PIPEngineGetHistory Sonar Critical error highlighted, with thrown execption not logged. The exception is now logged. Issue-ID: POLICY-455 Change-Id: If2969a4fe118d22dbd1fb11879ba028487848eb8 Signed-off-by: liamfallon --- diff --git a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java index bfdff4d7f..21bdcd853 100644 --- a/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java +++ b/controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java @@ -140,7 +140,7 @@ public class PIPEngineGetHistory extends StdConfigurableEngine{ operation = getRecipe(pipFinder).iterator().next(); target = getTarget(pipFinder).iterator().next(); } catch (Exception e) { - logger.debug("could not retrieve actor, operation, or target from PIP finder"); + logger.debug("could not retrieve actor, operation, or target from PIP finder", e); return StdPIPResponse.PIP_RESPONSE_EMPTY; }