Details
-
Task
-
Resolution: Unresolved
-
Major - P3
-
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.