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

LogFormatter throws a NPE when all elements are disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.3, 2.10.1
    • 2.9.5, 2.10.3, 2.11.0
    • camel-core
    • None
    • Unknown

    Description

      There are perfectly valid cases where you may want to output a log message with no elements displayed, i.e. with showExchangeId=false, showBody=false, etc.

      For example, when you want to print a "signal" log line for a particular transaction and you're already using MDC logging with breadcrumbs enabled. You may already have all the info you need: logging category, severity, breadcrumbId. You are not interested in anything else.

      Currently, disabling all elements leads to a NPE.

      Attachments

        Activity

          People

            raulvk Raúl Kripalani
            raulvk Raúl Kripalani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: