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

Remove 'isJsonLogNoConn()' and 'isJsonLog()' JS helpers and simplify callers

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • QE 2022-09-19

    Description

      The  isJsonLogNoConn() helper has a trivial implementation which always returns true. It looks like we can just delete this function after simplifying callers so that they no longer have code to handle the old logging format.

      The story is similar for isJsonLog(). Its implementation runs the "buildinfo" command and returns true unless the version number is 4.2.x. In the master branch we are never testing against a 4.2.x version, so this function should always return true. We can simplify callers to assume that the logging format is the logv2 JSON format and then delete isJsonLog().

      Attachments

        Activity

          People

            ivan.fefer@mongodb.com Ivan Fefer
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: