Hi Its a known issue with the tracer when it gets a bit more complex when using interceptors etc. Its listed in the known issue section in the release notes. And we got a couple of JIRA tickets about this.
A rework on internals in Camel 3 should help us make this work better than we currently can do in 2.x. On Fri, Oct 8, 2010 at 11:22 PM, Christian Müller <[email protected]> wrote: > 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. > -- 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
