Branislav Smolicek created CAMEL-20591:
------------------------------------------

             Summary: Add a method to set muteException/logException option in 
restConfiguration
                 Key: CAMEL-20591
                 URL: https://issues.apache.org/jira/browse/CAMEL-20591
             Project: Camel
          Issue Type: New Feature
          Components: camel-atmosphere-websocket, camel-http-common, 
camel-jetty, camel-servlet
            Reporter: Branislav Smolicek
         Attachments: bean-validator.zip

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:
{code:java}
restConfiguration().component("servlet").muteException(false);{code}
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:
{code:java}
camel.component.servlet.mute-exception=false {code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to