Summary: | LoggingEvent.getMDCCopy() should set mdcLookupRequired = false | ||
---|---|---|---|
Product: | Log4j - Now in Jira | Reporter: | Nicko Cadell <apache-bugs> |
Component: | Other | Assignee: | log4j-dev <log4j-dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.2 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | other |
Description
Nicko Cadell
2002-05-16 13:22:56 UTC
Good catch! I'll fix it immediately and will release log4j 1.2.1 afterwards. By the way, did you detect this bug by reading the code or by observing at deployment time? Regards, Ceki ps: I'll also add a test case in order detect such silly errors as early as possible. I spotted this reading the code (or rather using find). I don't think that this would actualy have an issue in a deployed system. The only issues would be if you called getMDCCopy() before calling getNDC() which would then not cache the NDC localy. However you don't do that so it should be ok. |