Log thrown exception in PIPEngineGetHistory 73/30673/1
authorliamfallon <liam.fallon@ericsson.com>
Wed, 7 Feb 2018 14:14:46 +0000 (14:14 +0000)
committerliamfallon <liam.fallon@ericsson.com>
Wed, 7 Feb 2018 14:15:09 +0000 (14:15 +0000)
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 <liam.fallon@ericsson.com>
controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java

index bfdff4d..21bdcd8 100644 (file)
@@ -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;
                }