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

DefaultExchangeHolder.marshal() logs NULL header values to WARN

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.16.1
    • 2.16.2, 2.17.0
    • camel-core
    • None
    • Unknown

    Description

      As described on this post on the mailing list (http://camel.465427.n5.nabble.com/DefaultExchangeHolder-marshal-produces-a-lot-of-warnings-CAMEL-8415-td5773927.html) DefaultExchangeHolder.marshal() logs NULL header values to WARN (since Camel 2.16).
      Some standard components such as camel-activemq, however, write a lot of headers being mostly NULL such as JMSDestination, JMSCorrelationID, etc.

      Hence, I would suggest to change the log level from WARN to INFO in line https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/impl/DefaultExchangeHolder.java#L358.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: