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

Optimization of DefaultExchangeFormatter leeds to crapy log output

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • camel-core
    • None
    • 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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment