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

Reduce log level for autodiscovered ObjectMapper

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.3, 3.5.0
    • Component/s: camel-jackson
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When ObjectMapper is autodiscovered from the beans registry ( autoDiscoverObjectMapper is set to true in JsonDataFormat), the following message is logged with warn severity:

      o.a.c.c.jackson.JacksonDataFormat : The objectMapper was already found in the registry, no customizations will be applied 

      In many systems, warnings in logs trigger monitoring alerts as they usually indicate the potential failure situation and require human attention. In this case, autodiscovery is chosen by the developer so there is no any danger. Is it possible to reduce the log message severity? It seems like it should be at most info. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                orange-buffalo Bogdan Ilchyshyn
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: