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

Add a method to set muteException/logException option in restConfiguration

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      Since Camel 4.1.0, by default, stack traces are not included in HTTP responses and exceptions are muted. https://camel.apache.org/manual/camel-4x-upgrade-guide-4_1.html#_camel_jetty_camel_servlet_camel_atmosphere_websocket_camel_http_common 
      It would be nice to have a way to set muteException and logException like this:

      restConfiguration().component("servlet").muteException(false);

      So that users don't have to set application properties.
      In the attached reproducer bean-validator.zip it's not possible to set with route option as the documentation suggests. Only by setting application property:

      camel.component.servlet.mute-exception=false 

       

      Attachments

        1. bean-validator.zip
          22 kB
          Branislav Smolicek

        Activity

          People

            Unassigned Unassigned
            bsmolice Branislav Smolicek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: