Author: mbrohl
Date: Mon Mar 12 22:08:42 2018
New Revision: 1826597
URL:
http://svn.apache.org/viewvc?rev=1826597&view=revLog:
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.
Modified:
ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/cache/UtilCache.java
Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/cache/UtilCache.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/cache/UtilCache.java?rev=1826597&r1=1826596&r2=1826597&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/cache/UtilCache.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/cache/UtilCache.java Mon Mar 12 22:08:42 2018
@@ -364,8 +364,8 @@ public class UtilCache<K, V> implements
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
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) {