Changed some Thread.dumpStack() calls into stack traces properly logged via the

logging system.
This commit is contained in:
Michael Bayne
2009-03-24 18:49:03 +00:00
parent e62608a69f
commit 398164f2df
@@ -332,8 +332,7 @@ public class PersistenceContext
return; return;
} }
if (key == null) { if (key == null) {
log.warning("Cache key must not be null [entry=" + entry + "]"); log.warning("Cache key must not be null [entry=" + entry + "]", new Exception());
Thread.dumpStack();
return; return;
} }
log.debug("storing [key=" + key + ", value=" + entry + "]"); log.debug("storing [key=" + key + ", value=" + entry + "]");
@@ -363,8 +362,7 @@ public class PersistenceContext
public void cacheInvalidate (CacheKey key) public void cacheInvalidate (CacheKey key)
{ {
if (key == null) { if (key == null) {
log.warning("Cache key to invalidate must not be null."); log.warning("Cache key to invalidate must not be null.", new Exception());
Thread.dumpStack();
} else { } else {
cacheInvalidate(key.getCacheId(), key.getCacheKey()); cacheInvalidate(key.getCacheId(), key.getCacheKey());
} }