You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/10/19 20:53:00 UTC

[jira] [Commented] (LOG4J2-3174) Wrong subject on mail when it depends on the LogEvent

    [ https://issues.apache.org/jira/browse/LOG4J2-3174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17430765#comment-17430765 ] 

ASF subversion and git services commented on LOG4J2-3174:
---------------------------------------------------------

Commit dff84c2868dfc7f4bf573962689c535565d89804 in logging-log4j2's branch refs/heads/release-2.x from romainmoreau
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=dff84c2 ]

LOG4J2-3174 Fix handling of LogEvent-dependent subjects in SmtpManager. (#589)

Co-authored-by: Romain Moreau <ro...@gmail.com>

> Wrong subject on mail when it depends on the LogEvent
> -----------------------------------------------------
>
>                 Key: LOG4J2-3174
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3174
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.14.1
>            Reporter: Romain Moreau
>            Assignee: Volkan Yazici
>            Priority: Major
>
> SmtpManager doesn't work as expected ; when the subject is a pattern that depends on the LogEvent (e.g. %m), the subject stay the same for all the subsequent events because the subject is set once before *the first* mail is sent.
> In the pull request that I will submit on GitHub, the subject will be set on the message before *each* mail is sent.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)