You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/12/04 09:12:00 UTC
[jira] [Resolved] (CAMEL-18767) camel-jbang - Make --trace output message body
[ https://issues.apache.org/jira/browse/CAMEL-18767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-18767.
---------------------------------
Assignee: Claus Ibsen
Resolution: Fixed
We output stream caches by default now so you can now see the body with --trace
> camel-jbang - Make --trace output message body
> ----------------------------------------------
>
> Key: CAMEL-18767
> URL: https://issues.apache.org/jira/browse/CAMEL-18767
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.20.0
>
>
> You see Body: [Body is instance of org.apache.camel.StreamCache]]
> We should make --trace log the message body as that is what the user wants to see in logs
> {code}
> 2022-11-28 13:58:22.586 INFO 33232 --- [ - timer://beer] joke.java:11 : ---> [route1 ] [from[kamelet:beer-source] ] Exchange[Id: 44F8A755690A0B1-0000000000000005, BodyType: org.apache.camel.converter.stream.InputStreamCache, Body: [Body is instance of org.apache.camel.StreamCache]]
> 2022-11-28 13:58:22.586 INFO 33232 --- [ - timer://beer] joke.java:12 : [route1 ] [setHeader[name] ] Exchange[Id: 44F8A755690A0B1-0000000000000005, BodyType: org.apache.camel.converter.stream.InputStreamCache, Body: [Body is instance of org.apache.camel.StreamCache]]
> 2022-11-28 13:58:22.587 INFO 33232 --- [ - timer://beer] joke.java:14 : [route1 ] [setHeader[brand] ] Exchange[Id: 44F8A755690A0B1-0000000000000005, BodyType: org.apache.camel.converter.stream.InputStreamCache, Body: [Body is instance of org.apache.camel.StreamCache]]
> 2022-11-28 13:58:22.588 INFO 33232 --- [ - timer://beer] joke.java:16 : [route1 ] [log ] Exchange[Id: 44F8A755690A0B1-0000000000000005, BodyType: org.apache.camel.converter.stream.InputStreamCache, Body: [Body is instance of org.apache.camel.StreamCache]]
> 2022-11-28 13:58:22.588 INFO 33232 --- [ - timer://beer] joke.java:16 : Sapporo - 90 Minute IPA
> 2022-11-28 13:58:22.588 INFO 33232 --- [ - timer://beer] joke.java:11 : <--- [route1 ] [from[kamelet:beer-source] ] Exchange[Id: 44F8A755690A0B1-0000000000000005, BodyType: org.apache.camel.converter.stream.InputStreamCache, Body: [Body is instance of org.apache.camel.StreamCache]]
> 2022-11-28 13:58:22.588 INFO 33232 --- [ - timer://beer] beer-source.kamelet.yaml:32 : *<-- [beer-source-] [from[timer:beer?period={{period}}] Exchange[Id: 44F8A755690A0B1-0000000000000005, BodyType: org.apache.camel.converter.stream.InputStreamCache, Body: [Body is instance of org.apache.camel.StreamCache]]
> ^C2022-11-28 13:58:23.527 INFO 33232 --- [ main] e.camel.impl.engine.AbstractCamelContext : Apache Camel 3.20.0-SNAPSHOT (joke) is shutting down (timeout:5s0ms)
> 2022-11-28 13:58:23.534 INFO 33232 --- [ main] e.camel.impl.engine.AbstractCamelContext : Routes stopped (stopped:2)
> 2022-11-28 13:58:23.534 INFO 33232 --- [ main] e.camel.impl.engine.AbstractCamelContext : Stopped beer-source-1 (timer://beer)
> 2022-11-28 13:58:23.534 INFO 33232 --- [ main] e.camel.impl.engine.AbstractCamelContext : Stopped route1 (kamelet://beer-source)
> 2022-11-28 13:58:23.538 INFO 33232 --- [ main] e.camel.impl.engine.AbstractCamelContext : Apache Camel 3.20.0-SNAPSHOT (joke) shutdown in 12ms (uptime:27s JVM-uptime:29s)
> 2022-11-28 13:58:23.539 INFO 33232 --- [ main] org.apache.camel.main.MainSupport : Apache Camel (JBang) 3.20.0-SNAPSHOT shutdown
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)