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
hdahl opened this issue Apr 22, 2015 · 3 comments
Open

Comments

@hdahl
Copy link
Contributor

hdahl commented Apr 22, 2015

Original issue 358 created by soi-toolkit on 2013-11-09T08:50:25.000Z:

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.

@hdahl
Copy link
Contributor Author

hdahl commented Apr 22, 2015

Comment #1 originally posted by soi-toolkit on 2013-11-09T08:53:50.000Z:

<empty>

@hdahl
Copy link
Contributor Author

hdahl commented Apr 22, 2015

Comment #2 originally posted by soi-toolkit on 2013-11-09T09:17:19.000Z:

<empty>

@hdahl
Copy link
Contributor Author

hdahl commented Apr 22, 2015

Comment #3 originally posted by soi-toolkit on 2014-02-23T15:20:29.000Z:

<empty>

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