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/73fb9737 Tree: http://git-wip-us.apache.org/repos/asf/shiro/tree/73fb9737 Diff: http://git-wip-us.apache.org/repos/asf/shiro/diff/73fb9737 Branch: refs/heads/master Commit: 73fb97373ff0f32604e70fc4037df8cb22eb3462 Parents: f47ced3 Author: Brian Demers <[email protected]> Authored: Tue Jun 21 11:46:09 2016 -0700 Committer: Brian Demers <[email protected]> Committed: Tue Jun 28 14:58:37 2016 -0700 ---------------------------------------------------------------------- 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/73fb9737/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 594644e..7891527 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."); } }
