Log4j 2
  1. Log4j 2
  2. LOG4J2-475

MongoDBConnection is broken because it uses addDecodingHook instead of addEncodingHook

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta9
    • Fix Version/s: 2.0-rc1
    • Component/s: Appenders
    • Labels:
      None

      Description

      Seems trivial to fix, just use addEncodingHook.

      (I have a feeling MongoDB logging has never been tested! Is there a unit test for it?)

        Activity

        Hide
        Matt Sicker added a comment -

        Here's a patch.

        Show
        Matt Sicker added a comment - Here's a patch.
        Hide
        Nick Williams added a comment -

        Fixed with r1565889. Based it off of Matt's patch, but there's no need to also have a decoding hook because the appender doesn't read events, it only writes them.

        Show
        Nick Williams added a comment - Fixed with r1565889. Based it off of Matt's patch, but there's no need to also have a decoding hook because the appender doesn't read events, it only writes them.

          People

          • Assignee:
            Nick Williams
            Reporter:
            Tal Liron
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development