You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2014/09/24 17:34:18 UTC

[2/6] git commit: add exception logging

add exception logging


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/807583dd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/807583dd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/807583dd

Branch: refs/heads/two-dot-o-candidate
Commit: 807583dddeb31c7e56427ea2b88ac1c2e4cd5299
Parents: ec39c7a
Author: Shawn Feldman <sf...@apache.org>
Authored: Mon Sep 22 18:47:34 2014 -0600
Committer: Shawn Feldman <sf...@apache.org>
Committed: Mon Sep 22 18:47:34 2014 -0600

----------------------------------------------------------------------
 .../usergrid/services/notifications/ApplicationQueueManager.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/807583dd/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManager.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManager.java b/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManager.java
index ee988dc..37f53c4 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManager.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManager.java
@@ -343,6 +343,7 @@ public class ApplicationQueueManager implements QueueManager {
                                     providerAdapter.sendNotification(message.getNotifierId(), notifier, payload, notification, tracker);
                                 } catch (Exception e) {
                                     tracker.failed(0, e.getMessage());
+                                    LOG.warn("failed to send notification with exception",e);
                                 } finally {
                                     LOG.info("sending to device {} for Notification: {} duration " + (System.currentTimeMillis() - now) + " ms", deviceUUID, notification.getUuid());
                                 }