tobias- / slack-appender

Slack Appender for Log4j
MIT License
8 stars 1 forks source link

Long stack traces do not display correctly #6

Open jamakal opened 6 years ago

jamakal commented 6 years ago

When a very long stack trace is generated, it looks like the message that is sent to Slack is truncated. This means that the message sent to slack loses the 'end of code' termination, causing messages to be incorrectly formatted (three backticks displayed, message is not enclosed in a code block correctly) :

slack-log4j-long

Can be reproduced with:

        Exception exception = new RuntimeException();
        for (int i = 0; i < 20; i++) {
            exception.addSuppressed(new RuntimeException());
        }
        LOGGER.error("Long exception", exception);