You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by mcrive <mc...@optasportsdata.com> on 2010/02/10 11:15:30 UTC
Wrong trace on GenericFileProducer?
Hi,
debugging an issue I am facing sending an exchange to an FTP endpoint I
found a possible wrong trace statement on the GenericFileProducer
@line 104 (current trunk)
if (log.isTraceEnabled()) {
log.trace("Deleting existing file: " +
tempTarget);
}
if (!operations.deleteFile(target)) {
throw new
GenericFileOperationFailedException("Cannot delete file: " + target);
}
it traces the tempTarget but it will delete the real target.
regards,
Marco
--
View this message in context: http://old.nabble.com/Wrong-trace-on-GenericFileProducer--tp27527120p27527120.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Wrong trace on GenericFileProducer?
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Thanks for reporting. I have fixed that now on trunk.
On Wed, Feb 10, 2010 at 11:15 AM, mcrive <mc...@optasportsdata.com> wrote:
>
> Hi,
> debugging an issue I am facing sending an exchange to an FTP endpoint I
> found a possible wrong trace statement on the GenericFileProducer
>
> @line 104 (current trunk)
>
> if (log.isTraceEnabled()) {
> log.trace("Deleting existing file: " +
> tempTarget);
> }
> if (!operations.deleteFile(target)) {
> throw new
> GenericFileOperationFailedException("Cannot delete file: " + target);
> }
>
> it traces the tempTarget but it will delete the real target.
>
> regards,
> Marco
> --
> View this message in context: http://old.nabble.com/Wrong-trace-on-GenericFileProducer--tp27527120p27527120.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus