Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mule suppress catch-exception-strategy logging

Is there any way to suppress Mule's (3.3.1) catch-exception-strategy behavior of logging the entire stack trace for a specific instance of the component? I don't want to do it in the log4j configuration for the class because I want unexpected exceptions to log.

I want to be able to catch an exception in a flow and decide whether to log it (and scare the heck out of the operations team) or just take corrective action and move on. In the following, is there some way to configure the first instance to not log the stack trace?

<choice-exception-strategy>
    <catch-exception-strategy when="exception.causedBy(my.exception.SpecificException)">
        <!-- I don't want logging on this one -->                
    </catch-exception-strategy>

    <catch-exception-strategy>
        <!-- I do want it here -->
    </catch-exception-strategy>
</choice-exception-strategy>
like image 434
Tad Avatar asked Nov 12 '22 23:11

Tad


1 Answers

I don't think so for Mule 3.3.1. It should be supported in Mule 3.4.0, can you try that?

https://www.mulesoft.org/jira/browse/MULE-6575

like image 61
Nikos Avatar answered Nov 15 '22 09:11

Nikos