You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2001/04/03 22:14:49 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/generation PhpGenerator.java
bloritsch 01/04/03 13:14:48
Modified: src/org/apache/cocoon/generation Tag: xml-cocoon2
PhpGenerator.java
Log:
Fix for log compile messages
Revision Changes Path
No revision
No revision
1.1.2.15 +7 -7 xml-cocoon/src/org/apache/cocoon/generation/Attic/PhpGenerator.java
Index: PhpGenerator.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/generation/Attic/PhpGenerator.java,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -r1.1.2.14 -r1.1.2.15
--- PhpGenerator.java 2001/02/22 17:10:34 1.1.2.14
+++ PhpGenerator.java 2001/04/03 20:14:47 1.1.2.15
@@ -28,7 +28,7 @@
* results into SAX events.
*
* @author <a href="mailto:rubys@us.ibm.com">Sam Ruby</a>
- * @version CVS $Revision: 1.1.2.14 $ $Date: 2001/02/22 17:10:34 $
+ * @version CVS $Revision: 1.1.2.15 $ $Date: 2001/04/03 20:14:47 $
*/
public class PhpGenerator extends ServletGenerator implements Poolable {
@@ -78,7 +78,7 @@
try {
output.write(data.getBytes());
} catch (IOException e) {
- log.debug("PhpGenerator.write()", e);
+ getLogger().debug("PhpGenerator.write()", e);
throw new RuntimeException(e.getMessage());
}
}
@@ -91,14 +91,14 @@
try {
service(request, response, input);
} catch (ServletException e) {
- log.error("PhpGenerator.run()", e);
+ getLogger().error("PhpGenerator.run()", e);
this.exception = e;
}
try {
output.close();
} catch (IOException e) {
- log.error("PhpGenerator.run():SHOULD NEVER HAPPEN", e);
+ getLogger().error("PhpGenerator.run():SHOULD NEVER HAPPEN", e);
// should never happen
}
}
@@ -138,13 +138,13 @@
// clean up
php.destroy();
} catch (SAXException e) {
- log.debug("PhpGenerator.generate()", e);
+ getLogger().debug("PhpGenerator.generate()", e);
throw e;
} catch (IOException e) {
- log.debug("PhpGenerator.generate()", e);
+ getLogger().debug("PhpGenerator.generate()", e);
throw e;
} catch (Exception e) {
- log.debug("PhpGenerator.generate()", e);
+ getLogger().debug("PhpGenerator.generate()", e);
throw new IOException(e.toString());
}
}
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org