usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject [1/2] git commit: move logging
Date Wed, 01 Oct 2014 20:46:41 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o 1530bf7aa -> 74cca91ce


move 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/c9f8ab77
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/c9f8ab77
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/c9f8ab77

Branch: refs/heads/two-dot-o
Commit: c9f8ab7790ddb6b2e2d4be0ee7ee71332cce210b
Parents: 1530bf7
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Wed Oct 1 14:28:59 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Wed Oct 1 14:28:59 2014 -0600

----------------------------------------------------------------------
 .../usergrid/services/notifications/ApplicationQueueManager.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c9f8ab77/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 e730a6d..cb65e00 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
@@ -249,11 +249,11 @@ public class ApplicationQueueManager implements QueueManager {
             LOG.info("ApplicationQueueMessage: notification {} done queuing to {} devices
in "+elapsed+" ms",notification.getUuid().toString(),deviceCount.get());
         }
 
-        now = System.currentTimeMillis();
         if(sendNow && messages.size()>0){
+            now = System.currentTimeMillis();
             sendBatchToProviders(messages,null).toBlocking().lastOrDefault(null);
+            LOG.info("ApplicationQueueMessage: notification {} done sending to "+messages.size()+"
devicess in {} ms", notification.getUuid(), System.currentTimeMillis() - now);
         }
-        LOG.info("ApplicationQueueMessage: notification {} done sending duration {} ms",
notification.getUuid(), System.currentTimeMillis() - now);
 
     }
 


Mime
View raw message