Better log message.

This commit is contained in:
Par Winzell
2009-01-12 15:13:34 +00:00
parent 062a8efcac
commit 017d9242ac
@@ -51,9 +51,9 @@ public class EHCacheAdapter
CacheManagerPeerListener listener = _cachemgr.getCachePeerListener(); CacheManagerPeerListener listener = _cachemgr.getCachePeerListener();
CacheManagerPeerProvider provider = _cachemgr.getCachePeerProvider(); CacheManagerPeerProvider provider = _cachemgr.getCachePeerProvider();
if (provider == null || listener == null) { if (provider == null || listener == null) {
// we want either both listener and provider, or neither log.warning("Distributed mode disabled. Please set a CacheManagerPeerListener " +
log.warning("EHCache misconfigured, distributed mode disabled [listener =" + " and a CacheManagerPeerProvider in your ehcache.xml configuration",
listener + ", provider=" + provider); "listener", listener, "provider", provider);
_config.distributed = false; _config.distributed = false;
} }
} }
@@ -115,7 +115,6 @@ public class EHCacheAdapter
_cache = _cachemgr.getCache(id); _cache = _cachemgr.getCache(id);
if (_cache == null) { if (_cache == null) {
// create the cache programatically with reasonable settings // create the cache programatically with reasonable settings
// TODO: we will eventually need this to be configurable in .properties
_cache = new Cache(id, _cache = new Cache(id,
_config.elementsInMemory, _config.elementsInMemory,
_config.overflowToDisk, _config.overflowToDisk,