From e23e969816a1f99a4b77129f1ccd92f5d96559c2 Mon Sep 17 00:00:00 2001 From: Riya Saxena Date: Wed, 5 Jun 2024 17:17:50 -0700 Subject: [PATCH] addressing the comments Signed-off-by: Riya Saxena --- .../correlation/alert/notifications/NotificationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java b/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java index 5782bdf5d..34478a063 100644 --- a/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java +++ b/src/main/java/org/opensearch/securityanalytics/correlation/alert/notifications/NotificationService.java @@ -53,13 +53,13 @@ public void onResponse(SendNotificationResponse sendNotificationResponse) { logger.info("Successfully sent a notification, Notification Event: " + sendNotificationResponse.getNotificationEvent()); } else { - logger.error("Successfully sent a notification, Notification Event: " + sendNotificationResponse.getNotificationEvent()); + logger.error("Error while sending a notification, Notification Event: " + sendNotificationResponse.getNotificationEvent()); } } @Override public void onFailure(Exception e) { - logger.error("Failed while sending a notification: " + e.toString()); + logger.error("Failed while sending a notification with " + configId, e); } }); }