Author: andreas
Date: Thu Jan 31 10:31:13 2008
New Revision: 617181
URL: http://svn.apache.org/viewvc?rev=617181&view=rev
Log:
OneForm editor: Log XML wellformedness and validation errors as info, not as error.
Modified:
lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/cms/cocoon/acting/OneFormEditorSaveAction.java
Modified: lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/cms/cocoon/acting/OneFormEditorSaveAction.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/cms/cocoon/acting/OneFormEditorSaveAction.java?rev=617181&r1=617180&r2=617181&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/cms/cocoon/acting/OneFormEditorSaveAction.java (original)
+++ lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/cms/cocoon/acting/OneFormEditorSaveAction.java Thu Jan 31 10:31:13 2008
@@ -112,7 +112,7 @@
DocumentHelper.readDocument(file);
}
catch (SAXException e) {
- log.error("Wellformedness check failed: " + e.getMessage());
+ log.info("Wellformedness check failed: " + e.getMessage());
Map hmap = new HashMap();
hmap.put("message", "Document is not well-formed: " + e.getMessage());
return hmap;
@@ -120,7 +120,7 @@
String message = RelaxNG.validate(schema, file);
if (message != null) {
- log.error("RELAX NG Validation failed: " + message);
+ log.info("RELAX NG Validation failed: " + message);
Map hmap = new HashMap();
hmap.put("message", "RELAX NG Validation failed: " + message);
return hmap;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.