Bug 45969 - SMTPAppender does not force evaluation message at time of request
SMTPAppender does not force evaluation message at time of request
Status: RESOLVED FIXED
Product: Log4j
Classification: Unclassified
Component: Appender
1.2
PC Mac OS X 10.4
: P2 normal
: ---
Assigned To: log4j-dev
:
Depends on:
Blocks:
  Show dependency tree
 
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