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

Logging using LogLevels and LabledLevels is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker - P1
    • Resolution: Fixed
    • None
    • 2.4.0-rc0
    • Logging
    • None
    • ALL

    Description

      Related commits (at least):
      https://github.com/mongodb/mongo/commit/4db60cf2
      https://github.com/mongodb/mongo/commit/892aad0c2fd35985f12b052668f1e37195c17740#L37L1337

      With these two commits, lines starting with LOG(LL_ERROR) are silently blackholed because LL_ERROR is an enum with value 4.

      Also it means that MONGO_LOG() can't return a nullstream since it is called by error() and warning().

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: