From 33870212d2d9b4660fd0f3ee7ff39b804c5f911f Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 8 Sep 2017 18:03:33 -0400 Subject: Set this class as serializable Fixing sonar critical to make this simple class serializable. Issue-ID: POLICY-115 Change-Id: I6a3cf8b1c8c27f434e26d9f2909b2ef38c72825b Signed-off-by: Pamela Dragosh --- .../onap/policy/controlloop/actor/mso/MSOActorServiceProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'controlloop/common/actors') diff --git a/controlloop/common/actors/actor.mso/src/main/java/org/onap/policy/controlloop/actor/mso/MSOActorServiceProvider.java b/controlloop/common/actors/actor.mso/src/main/java/org/onap/policy/controlloop/actor/mso/MSOActorServiceProvider.java index f3c563f2a..653022bac 100644 --- a/controlloop/common/actors/actor.mso/src/main/java/org/onap/policy/controlloop/actor/mso/MSOActorServiceProvider.java +++ b/controlloop/common/actors/actor.mso/src/main/java/org/onap/policy/controlloop/actor/mso/MSOActorServiceProvider.java @@ -269,7 +269,7 @@ public class MSOActorServiceProvider implements Actor { setCloudRegionItemCloudRegionId(namedQueryResponseWrapper.aainqf199response.inventoryResponseItems.get(0).items.inventoryResponseItems.get(1).items.inventoryResponseItems.get(0).cloudRegion.cloudRegionId); } catch (Exception e) { - logger.error(e.getMessage()); + logger.error(e.getMessage(), e); VirtualControlLoopNotification notification = new VirtualControlLoopNotification(onset); notification.notification = ControlLoopNotificationType.REJECTED; notification.message = "Exception occurred " + e.getMessage(); @@ -281,7 +281,7 @@ public class MSOActorServiceProvider implements Actor { logger.debug(Serialization.gsonPretty.toJson(notification)); } catch (Exception e1) { logger.error("Can't deliver notification: " + notification); - logger.error(e1.getMessage()); + logger.error(e1.getMessage(), e1); } // notification.notification = ControlLoopNotificationType.FINAL_FAILURE; @@ -291,7 +291,7 @@ public class MSOActorServiceProvider implements Actor { logger.debug(Serialization.gsonPretty.toJson(notification)); } catch (Exception e1) { logger.error("Can't deliver notification: " + notification); - logger.error(e1.getMessage()); + logger.error(e1.getMessage(), e1); } // Retract everything return; -- cgit 1.2.3-korg