Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18767

camel-jbang - Make --trace output message body

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.20.0
    • camel-jbang
    • None
    • Unknown

    Description

      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

      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
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: