Improved: Change log level from INFO to VERBOSE for detail logging in

UtilCache.findSizeInByte
(OFBIZ-10200)

Thanks Martin Becker for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1826597 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Brohl
2018-03-12 22:08:42 +00:00
parent aebec6aafc
commit 1885f9a0a0
@@ -364,8 +364,8 @@ public class UtilCache<K, V> implements Serializable, EvictionListener<Object, C
private long findSizeInBytes(Object o) {
if (o == null) {
if (Debug.infoOn()) {
Debug.logInfo("Found null object in cache: " + getName(), module);
if (Debug.verboseOn()) {
Debug.logVerbose("Found null object in cache: " + getName(), module);
}
return 0;
}
@@ -373,8 +373,8 @@ public class UtilCache<K, V> implements Serializable, EvictionListener<Object, C
if (o instanceof Serializable) {
return UtilObject.getByteCount(o);
}
if (Debug.infoOn()) {
Debug.logInfo("Unable to compute memory size for non serializable object; returning 0 byte size for object of " + o.getClass(), module);
if (Debug.verboseOn()) {
Debug.logVerbose("Unable to compute memory size for non serializable object; returning 0 byte size for object of " + o.getClass(), module);
}
return 0;
} catch (NotSerializableException e) {