Author: chrisg
Date: Tue Dec 21 16:04:41 2010
New Revision: 1051537
URL:
http://svn.apache.org/viewvc?rev=1051537&view=revLog:
Applied fix from trunk for revision: 1050186
===
Log if there's a problem (i.e. invalid XML) when loading XML-Properties
see OFBIZ-4045
submitted by Georg Koester
Modified:
ofbiz/branches/release10.04/framework/base/src/org/ofbiz/base/util/UtilProperties.java
Modified: ofbiz/branches/release10.04/framework/base/src/org/ofbiz/base/util/UtilProperties.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/framework/base/src/org/ofbiz/base/util/UtilProperties.java?rev=1051537&r1=1051536&r2=1051537&view=diff==============================================================================
--- ofbiz/branches/release10.04/framework/base/src/org/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/branches/release10.04/framework/base/src/org/ofbiz/base/util/UtilProperties.java Tue Dec 21 16:04:41 2010
@@ -826,6 +826,7 @@ public class UtilProperties implements S
doc = UtilXml.readXmlDocument(in, false, "XML Properties file");
in.close();
} catch (Exception e) {
+ Debug.logWarning(e, "XML Locale file for locale " + locale + " could not be loaded.", module);
in.close();
return null;
}