Mandiax / soi-toolkit

Automatically exported from code.google.com/p/soi-toolkit
0 stars 0 forks source link

Make Logtransformers work with catch- and rollback exception strategies #358

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Logging using a org.soitoolkit.commons.mule.log.LogTransformer in a catch- or 
rollback exception strategy does not work, no log is written due to this code:

---
        @Override
        public Object transformMessage(MuleMessage message, String outputEncoding) throws TransformerException {

        try {
                        // Skip logging if an error has occurred, then the error is logged by an error handler
                ExceptionPayload exp = message.getExceptionPayload();
                if (exp != null) {
                        log.debug("Skip logging message, exception detected! " + exp.getException().getMessage());
                        return message;
                }

---
Suggest we either make the behaviour configurable - or re-implement the 
logtransformer for use with exception-strategies.

Original issue reported on code.google.com by hakan.d...@gmail.com on 9 Nov 2013 at 8:50

GoogleCodeExporter commented 8 years ago

Original comment by hakan.d...@gmail.com on 9 Nov 2013 at 8:53

GoogleCodeExporter commented 8 years ago

Original comment by hakan.d...@gmail.com on 9 Nov 2013 at 9:17

GoogleCodeExporter commented 8 years ago

Original comment by hakan.d...@gmail.com on 23 Feb 2014 at 3:20