Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-46618

Fix unittest logging to BSON

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • 28

    Description

      Since boost::log does not work correctly with different formatters per sink, we need to inline the formatter into the sink we use for capturing bson logs in unit tests.

      boost::log caaches the formatter information in a thread local. See https://github.com/mongodb/mongo/blob/0ef652f6456a46b6e162e147f75ab5cdd05018f5/src/third_party/boost-1.70.0/boost/log/sinks/basic_sink_frontend.hpp#L344-L345

       

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: