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;
}
if (key == null) {
log.warning("Cache key must not be null [entry=" + entry + "]");
Thread.dumpStack();
log.warning("Cache key must not be null [entry=" + entry + "]", new Exception());
return;
}
log.debug("storing [key=" + key + ", value=" + entry + "]");
@@ -363,8 +362,7 @@ public class PersistenceContext
public void cacheInvalidate (CacheKey key)
{
if (key == null) {
log.warning("Cache key to invalidate must not be null.");
Thread.dumpStack();
log.warning("Cache key to invalidate must not be null.", new Exception());
} else {
cacheInvalidate(key.getCacheId(), key.getCacheKey());
}