You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bd...@apache.org on 2016/07/11 22:25:56 UTC

shiro git commit: Removing log spam when no cache manager is enabled.

Repository: shiro
Updated Branches:
  refs/heads/1.3.x bd8c31415 -> a20a24cca


Removing log spam when no cache manager is enabled.

Previously when the cache manager was not configured, the log would be spammed with:
"No cache or cacheManager properties have been set.  Authorization cache cannot be obtained. "

Fixes: SHIRO-428


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

Branch: refs/heads/1.3.x
Commit: a20a24ccac6fee6a7ac4ee8259e4256db75f62c7
Parents: bd8c314
Author: Brian Demers <bd...@stormpath.com>
Authored: Tue Jun 21 11:46:09 2016 -0700
Committer: Brian Demers <bd...@apache.org>
Committed: Mon Jul 11 18:20:32 2016 -0400

----------------------------------------------------------------------
 core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/shiro/blob/a20a24cc/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java b/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
index a8b1a05..11c5f85 100644
--- a/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
+++ b/core/src/main/java/org/apache/shiro/realm/AuthorizingRealm.java
@@ -244,8 +244,8 @@ public abstract class AuthorizingRealm extends AuthenticatingRealm
                 }
                 this.authorizationCache = cacheManager.getCache(cacheName);
             } else {
-                if (log.isInfoEnabled()) {
-                    log.info("No cache or cacheManager properties have been set.  Authorization cache cannot " +
+                if (log.isDebugEnabled()) {
+                    log.debug("No cache or cacheManager properties have been set.  Authorization cache cannot " +
                             "be obtained.");
                 }
             }