Heikki,
I'll look into this. For extra security, would you like to report it as a bug as well? Thanks, Ceki At 17:33 16.01.2002 +0200, you wrote: >MDC seems to work inproperly with AsyncAppender. > >I have a custom appender that reads some entries from the MDC, and writes >them to a database. If I use it with the AsyncAppender, the MDC information >is sometimes wrong. > >The problems seems to be that LoggingEvent.getMDCCopy() doesn't actully >create a copy of the hashtable, but just gets a reference to it. > >If you modify LoggingEvent.getMDCCopy like this... > >203c203 >< mdcCopy = (Hashtable)MDC.getContext().clone(); >--- >> mdcCopy = MDC.getContext(); > >... it starts working. > >- Heikki > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ceki G�lc� - http://qos.ch -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
