Changed some Thread.dumpStack() calls into stack traces properly logged via the
logging system.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user