Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-496

MDC properties sometimes were empty (DBAppender)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 0.9.30
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      win xp, jdk1.6.0_22, weblogic 10.3.4

      Description

      I put the userId and userName into MDC while login, but sometimes it was not written to DB.
      After debug I found that while the actual type of "event.getMDCPropertyMap()" is Collections$SynchronizedMap, MDC was not empty; but when it return HashMap, then MDC is empty.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              linhao315 Bryan Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: