usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject usergrid git commit: Change scoped cache logging to debug.
Date Wed, 30 Mar 2016 00:16:06 GMT
Repository: usergrid
Updated Branches:
  refs/heads/release-2.1.1 581314185 -> f6b61cc35


Change scoped cache logging to debug.


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

Branch: refs/heads/release-2.1.1
Commit: f6b61cc35d01cb9c316e0a19ead495ff434e0afa
Parents: 5813141
Author: Michael Russo <mrusso@apigee.com>
Authored: Tue Mar 29 17:15:45 2016 -0700
Committer: Michael Russo <mrusso@apigee.com>
Committed: Tue Mar 29 17:15:45 2016 -0700

----------------------------------------------------------------------
 .../cache/impl/ScopedCacheSerializationImpl.java            | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/f6b61cc3/stack/corepersistence/cache/src/main/java/org/apache/usergrid/persistence/cache/impl/ScopedCacheSerializationImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/cache/src/main/java/org/apache/usergrid/persistence/cache/impl/ScopedCacheSerializationImpl.java
b/stack/corepersistence/cache/src/main/java/org/apache/usergrid/persistence/cache/impl/ScopedCacheSerializationImpl.java
index 1f763b2..d6ca300 100644
--- a/stack/corepersistence/cache/src/main/java/org/apache/usergrid/persistence/cache/impl/ScopedCacheSerializationImpl.java
+++ b/stack/corepersistence/cache/src/main/java/org/apache/usergrid/persistence/cache/impl/ScopedCacheSerializationImpl.java
@@ -144,7 +144,9 @@ public class ScopedCacheSerializationImpl<K,V> implements ScopedCacheSerializati
                 return value;
 
             } catch (NotFoundException nfe) {
-                logger.info("Value not found");
+                if(logger.isDebugEnabled()) {
+                    logger.debug("Value not found");
+                }
 
             } catch (IOException ioe) {
                 logger.error("Unable to read cached value", ioe);
@@ -155,7 +157,10 @@ public class ScopedCacheSerializationImpl<K,V> implements ScopedCacheSerializati
             throw new RuntimeException("Unable to connect to cassandra", e);
         }
 
-        logger.info("Cache value not found for key {}", key );
+        if(logger.isDebugEnabled()){
+            logger.debug("Cache value not found for key {}", key );
+
+        }
 
         return null;
     }


Mime
View raw message