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

Find and update logs where we log a string

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 4.3 Desired
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 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

      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.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            elizabeth.roytburd@mongodb.com Elizabeth Roytburd
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: