Author: doogie
Date: Thu Apr 8 20:47:24 2010
New Revision: 932101
URL:
http://svn.apache.org/viewvc?rev=932101&view=revLog:
Fix bad exception logging pattern, now you actually get an exception
trace.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java?rev=932101&r1=932100&r2=932101&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java Thu Apr 8 20:47:24 2010
@@ -154,7 +154,7 @@ public class UtilProperties implements j
try {
value = properties.getProperty(name);
} catch (Exception e) {
- Debug.log(e.getMessage(), module);
+ Debug.log(e, module);
}
return value == null ? "" : value.trim();
}
@@ -178,7 +178,7 @@ public class UtilProperties implements j
properties = getProperties(url);
resourceCache.put(cacheKey, properties);
} catch (MissingResourceException e) {
- Debug.log(e.getMessage(), module);
+ Debug.log(e, module);
}
}
if (properties == null) {
@@ -203,7 +203,7 @@ public class UtilProperties implements j
properties.load(url.openStream());
urlCache.put(url.toString(), properties);
} catch (Exception e) {
- Debug.log(e.getMessage(), module);
+ Debug.log(e, module);
}
}
if (properties == null) {
@@ -294,7 +294,7 @@ public class UtilProperties implements j
try {
value = properties.getProperty(name);
} catch (Exception e) {
- Debug.log(e.getMessage(), module);
+ Debug.log(e, module);
}
return value == null ? "" : value.trim();
}
@@ -331,7 +331,7 @@ public class UtilProperties implements j
curIdx++;
}
} catch (Exception e) {
- Debug.log(e.getMessage(), module);
+ Debug.log(e, module);
}
return value == null ? "" : value.trim();
}
@@ -449,7 +449,7 @@ public class UtilProperties implements j
try {
value = (String) bundle.getString(name);
} catch (Exception e) {
- //Debug.log(e.getMessage(), module);
+ //Debug.log(e, module);
}
return value == null ? name : value.trim();
}