Fix unittest logging to BSON

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • 28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

       

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: