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

Optimization of DefaultExchangeFormatter leeds to crapy log output

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The changes to DefaultExchangeFormatter from issue CAMEL-14354 have an "ugly" side effect. If using multiline logging and StringBuffer is less than 10000 chars you'll get a String logged with lots of ###REPLACE_ME###.

      Reproduce with test case Camel14632Test.java and see log output
      e.g.:

      2020-02-29T16:25:58,966 INFO  [main            ] test                             - Exchange[###REPLACE_ME###  Id: ID-PC47376-1582989958950-0-1###REPLACE_ME###  ExchangePattern: InOnly###REPLACE_ME###  Properties: {CamelToEndpoint=log://test?multiline=true&showAll=true}###REPLACE_ME###  Headers: {}###REPLACE_ME###  BodyType: String###REPLACE_ME###  Body: test]
      

        Attachments

        1. Camel14632Test.java
          0.7 kB
          Benjamin Graf

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                graben Benjamin Graf
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: