usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject usergrid git commit: Changed logging to debug and wrapped it in logger if.
Date Mon, 04 Jan 2016 17:24:41 GMT
Repository: usergrid
Updated Branches:
  refs/heads/USERGRID-1187 5c70fbf86 -> dd8d02718


Changed logging to debug and wrapped it in logger if.


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

Branch: refs/heads/USERGRID-1187
Commit: dd8d02718f515e34981c6e6e9f3c882c3f9b1001
Parents: 5c70fbf
Author: George Reyes <grey@apache.org>
Authored: Mon Jan 4 09:24:38 2016 -0800
Committer: George Reyes <grey@apache.org>
Committed: Mon Jan 4 09:24:38 2016 -0800

----------------------------------------------------------------------
 .../usergrid/management/cassandra/ManagementServiceImpl.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/dd8d0271/stack/services/src/main/java/org/apache/usergrid/management/cassandra/ManagementServiceImpl.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/management/cassandra/ManagementServiceImpl.java
b/stack/services/src/main/java/org/apache/usergrid/management/cassandra/ManagementServiceImpl.java
index e1f36de..df63db4 100644
--- a/stack/services/src/main/java/org/apache/usergrid/management/cassandra/ManagementServiceImpl.java
+++ b/stack/services/src/main/java/org/apache/usergrid/management/cassandra/ManagementServiceImpl.java
@@ -1609,8 +1609,11 @@ public class ManagementServiceImpl implements ManagementService {
 
         EntityManager em = emf.getEntityManager( smf.getManagementAppId() );
 
+        
         if(em.getCollection(organization.getUuid() ,"users",Query.fromQL( "select * where
uuid ="+user.getUuid() ),Level.IDS ).size() >0){
-            logger.trace( "Found value: {} already in collection",user.getName() );
+            if(logger.isDebugEnabled()) {
+                logger.debug( "Found value: {} already in collection", user.getName() );
+            }
             return;
         }
 


Mime
View raw message