cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: svn commit: r556438 - in /cocoon/trunk/core: cocoon-core/src/main/resources/META-INF/cocoon/avalon/ cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/ cocoon-pipeline/cocoon-pipeline-components/src/main/resources/MET...
Date Wed, 18 Jul 2007 16:16:10 GMT
danielf@apache.org schrieb:
> Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/FileGenerator.java
> URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/FileGenerator.java?view=diff&rev=556438&r1=556437&r2=556438
> ==============================================================================
> --- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/FileGenerator.java
(original)
> +++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/FileGenerator.java
Sun Jul 15 12:31:31 2007
>   
<snip>
>  
> @@ -70,12 +98,19 @@
>      throws ProcessingException, SAXException, IOException {
>          super.setup(resolver, objectModel, src, par);
>          try {
> +        	// Lookup parser in Avalon contexts
> +        	if (null == this.parser)
> +				this.parser = (SAXParser) this.manager.lookup(SAXParser.class.getName());
> +        } catch (ServiceException e) {
> +            throw new ProcessingException("Exception when getting parser.", e);
> +        }
> +        try {
>              this.inputSource = super.resolver.resolveURI(src);
>          } catch (SourceException se) {
>              throw SourceUtil.handle("Error during resolving of '" + src + "'.", se);
>          }
>          if (getLogger().isDebugEnabled()) {
> -            getLogger().debug("Source " + super.source +
> +            getLogger().error("Source " + super.source +
>                                " resolved to " + this.inputSource.getURI());
>   
Sorry, but I do not understand why this needs to be logged to error?

Felix

Mime
View raw message