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

Find and update logs where we log a string

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • 4.3 Desired
    • None
    • None
    • Service Arch
    • Service Arch 2020-04-06, Service arch 2020-04-20, Service arch 2020-05-04, Service arch 2020-05-18, Service arch 2020-06-01

    Description

      There are a handful of places where log message gets built, and then separately logged. Most commonly it's because the message is used for both logging and for creation of a Status. For example:

              std::stringstream ss;
              ss << "can't resize since we're using (" << used << ") "
                 << "more than newSize(" << newSize << ")";
       
              std::string errmsg = ss.str();
              LOGV2(23120, "{errmsg}", "errmsg"_attr = errmsg);
              return Status(ErrorCodes::BadValue, errmsg);
      

      We need to find these and fix the log statements such that the attributes get explicitly passed.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            elizabeth.roytburd@mongodb.com Elizabeth Roytburd
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: