Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2429

Setting the exceptionHandler on the AuditEvent sets it as a ThreadContext variable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Log4j-Audit 1.0.0
    • Fix Version/s: Log4j-Audit 1.0.1
    • Component/s: Log4j-Audit
    • Labels:
      None

      Description

      Setting the exceptionHandler on the AuditEvent triggers this code, but it falls through after the set and ends up at line 315 and sets it as a ThreadContext variable and ends up getting logged 🤦‍♂️

      [AuditLogger] - Audit [cashPaymentOut amount="0.500" auditExceptionHandler="AuditEventLogger$$Lambda$137/1968918278@54de299" currency="CHF" reason="Cash return" salesTransaction="3b974661-d8ed-481d-b2fe-5f2979b40fa9"]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shadow Andrei Ivanov
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: