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

Update link in logv2 error message when a default component is not defined

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL

      If I don’t define a default log component in a source file I get the following error:

      src/mongo/logv2/log.h:66:2: error: #error "mongo/logv2/log.h requires MONGO_LOGV2_DEFAULT_COMPONENT to be defined. " "Please see http://www.mongodb.org/about/contributors/reference/server-logging-rules/ "
      

      But the linked page was last edited in 2016. The guidance is outdated because it has been superseded by logv2. 

      We should update the error message to include a link to an updated README about LOGV2.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: