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

Alter LOGV2 behavior in the presence of missing attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.4
    • Logging
    • None
    • Fully Compatible
    • ALL
    • Dev Tools 2020-02-24, Dev Tools 2020-03-09

    Description

      It's my understanding that LOGV2 expressions throw when presented with attribute substitutions in the message that are not present in the overall expression. I'd like them to be fatal in debug builds and non-throwing elsewhere (perhaps logging some extra context that an attribute is missing).

      Failure to do this will turn typos in log statements in exception unsafe areas of code into fatal errors in production, which feels excessive.

      Attachments

        Issue Links

          Activity

            People

              henrik.edin@mongodb.com Henrik Edin
              jason.carey@mongodb.com Jason Carey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: