100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Minor
Christian Bauerc3bde22c5cd7
diff --git a/manager/server/src/main/java/org/openremote/manager/server/notification/NotificationService.java b/manager/server/src/main/java/org/openremote/manager/server/notification/NotificationService.javaindex fafc11745..7fa1e3c44 100644--- a/manager/server/src/main/java/org/openremote/manager/server/notification/NotificationService.java+++ b/manager/server/src/main/java/org/openremote/manager/server/notification/NotificationService.java@@ -19,6 +19,7 @@*/package org.openremote.manager.server.notification;+import org.apache.commons.lang3.exception.ExceptionUtils;import org.jboss.resteasy.client.jaxrs.ResteasyClient;import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;import org.jboss.resteasy.client.jaxrs.ResteasyWebTarget;@@ -26,6 +27,7 @@ import org.openremote.container.Container;import org.openremote.container.ContainerService;import org.openremote.container.persistence.PersistenceService;import org.openremote.container.timer.TimerService;+import org.openremote.container.util.Util;import org.openremote.container.web.WebService;import org.openremote.manager.shared.notification.DeviceNotificationToken;import org.openremote.model.notification.AlertNotification;@@ -43,6 +45,8 @@ import java.util.Optional;import java.util.logging.Level;import java.util.logging.Logger;+import static org.apache.commons.lang3.exception.ExceptionUtils.getRootCause;+public class NotificationService implements ContainerService {private static final Logger LOG = Logger.getLogger(NotificationService.class.getName());@@ -151,7 +155,7 @@ public class NotificationService implements ContainerService {}response.close();} catch (Exception e) {- LOG.log(Level.SEVERE, "Error sending notification to FCM", e);+ LOG.log(Level.SEVERE, "Error sending notification to FCM: " + getRootCause(e), e);}}});