mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Refactoring
This commit is contained in:
parent
518e778a80
commit
479bbfb42b
@ -106,7 +106,10 @@ public class AddNotificationFunctionProcessor extends StreamFunctionProcessor {
|
|||||||
try {
|
try {
|
||||||
isNotified = notificationManagementService.addNotification(new DeviceIdentifier(deviceId, deviceType), notification);
|
isNotified = notificationManagementService.addNotification(new DeviceIdentifier(deviceId, deviceType), notification);
|
||||||
} catch (NotificationManagementException e) {
|
} catch (NotificationManagementException e) {
|
||||||
log.error("Error occurred while adding notification for " + deviceType + " device with id " + deviceId, e);
|
// We are not throwing this exception to siddhi runtime as it will break the complete siddhi execution
|
||||||
|
// flow for the event stream coming in.
|
||||||
|
log.error("Error occurred while adding notification '" + notification.toString() + "' for " +
|
||||||
|
deviceType + " device with id " + deviceId, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Object[]{isNotified};
|
return new Object[]{isNotified};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user