You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by sy...@apache.org on 2003/07/17 20:50:52 UTC
cvs commit: cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/components/source/impl BlobSourceFactory.java
sylvain 2003/07/17 11:50:52
Modified: src/blocks/databases/java/org/apache/cocoon/components/source/impl
BlobSourceFactory.java
Log:
Enable logging on the BlobSource.
Reported by: Olivier Billard <ob...@rennes.jouve.fr>
Revision Changes Path
1.2 +4 -7 cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/components/source/impl/BlobSourceFactory.java
Index: BlobSourceFactory.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/components/source/impl/BlobSourceFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BlobSourceFactory.java 23 Jun 2003 17:53:42 -0000 1.1
+++ BlobSourceFactory.java 17 Jul 2003 18:50:52 -0000 1.2
@@ -90,6 +90,7 @@
public Source getSource(String location, Map parameters)
throws MalformedURLException, IOException, SourceException {
BlobSource blob = new BlobSource(location);
+ this.setupLogger(blob);
blob.compose(this.manager);
return blob;
}
@@ -98,13 +99,9 @@
* Release a {@link Source} object.
*/
public void release( Source source ) {
- if ( null != source ) {
- if ( this.getLogger().isDebugEnabled() ) {
- this.getLogger().debug("Releasing source " + source.getURI());
- }
- // simply do nothing
- }
+ // Nothing to do
}
+
/**
* @see org.apache.avalon.framework.component.Composable#compose(org.apache.avalon.framework.component.ComponentManager)
*/