Hello Claus, hello Ade!

I modified the test a bit on my machine. I added the following two lines to
enable the default tracer:

{code:java}
                context.setTracing(true);
                context.getInterceptStrategies().add(new Tracer());
{code}

I received the following log statements:

{code}
2010-10-08 23:13:14,164 [main           ] INFO
Tracer                         -
ID-christian-muellers-macbook-pro-local-56443-1286572393506-0-2 >>> (foo)
from(direct://start) --> log://foo <<< Pattern:InOnly, BodyType:String,
Body:Hello World
2010-10-08 23:13:14,165 [main           ] INFO
foo                            - Exchange[ExchangePattern:InOnly,
BodyType:String, Body:Hello World]
2010-10-08 23:13:14,168 [main           ] INFO
Tracer                         -
ID-christian-muellers-macbook-pro-local-56443-1286572393506-0-2 >>> (foo)
log://foo --> org.apache.camel.processor.inlinedprocessoridtest$...@786c1a82<<<
Pattern:InOnly, BodyType:String, Body:Hello World
2010-10-08 23:13:14,169 [main           ] INFO
Tracer                         -
ID-christian-muellers-macbook-pro-local-56443-1286572393506-0-2 >>> (foo)
org.apache.camel.processor.inlinedprocessoridtest$...@786c1a82 -->
mock://result <<< Pattern:InOnly, Headers:{foo=123}, BodyType:String,
Body:Hello World
{code}

That's not what we want, is it? Instead of "log://foo -->
org.apache.camel.processor.inlinedprocessoridtest$...@786c1a82" I expected
"log --> inlined".

Have a nice weekend,
Christian

P.S. Looking forward to the FUSE community day in Paris.

Reply via email to