Hi Volkan,

On Mon, 5 Feb 2024 at 20:13, Volkan Yazıcı <vol...@yazi.ci> wrote:
> What about the other two issues I mentioned:
>
>    1. `log4j2.formatMsgAsync` and `@AsynchronouslyFormattable` don't always
>    work (`log4j2.formatMsgAsync=false` is ignored for reusable messages, which
>    are formatted always eagerly)
>    2. Usage of `Message#getFormattedMessage()` in
>    `InternalAsyncUtil.makeMessageImmutable()` triggers an unnecessary `String`
>    allocation

Both issues are caused by an additional
`InternalAsyncUtil.makeMessageImmutable()` in
`MutableLogEvent#setMessage`, that can be removed.

Piotr

Reply via email to