Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jul 30, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Milestone-Release0.6.2
  • Removed labels: Milestone-Release0.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant