logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44745] New: AsyncAppender fails on changing Throwable
Date Thu, 03 Apr 2008 14:41:30 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44745

           Summary: AsyncAppender fails on changing Throwable
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: julien.ayme@gmail.com


Created an attachment (id=21776)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21776)
The proposed patch.

If I use an AsyncAppender to log a Throwable object that is changed after the
call
of the logging method, the logging will sometime show up the value changed
afterwards.

(This issue is similar to Bug #43599, excepts that it concerns Throwables).

I propose the following fix (again, same as revision #587252):
in AsyncAppender#append:
     event.getRenderedMessage();
+    event.getThrowableStrRep();

...

which assures that the ThrowableInformation is correctly initialized, and will
not change afterwards.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message