Bug 45969 - SMTPAppender does not force evaluation message at time of request
Summary: SMTPAppender does not force evaluation message at time of request
Status: RESOLVED FIXED
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2
Hardware: PC Mac OS X 10.4
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 15:00 UTC by Curt Arnold
Modified: 2008-10-08 15:07 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2008-10-08 15:00:32 UTC
SMTPAppender can place LoggingEvents into a queue for later processing, but does not call LoggingEvent.getRenderedMessage() or LoggingEvent.getThrowableStringRep() which would force immediate evaluation of the message and throwable, so the eventual message may be affected by changes in the message parameter or throwable that occur after the logging request.
Comment 1 Curt Arnold 2008-10-08 15:07:00 UTC
Fixed in rev 703006