summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_openbsd.cpp
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2020-05-21 12:06:47 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-02 22:09:56 +0000
commit451dcf99afb7a67e9a5b849e846391402b5928c9 (patch)
tree9ca45d512d6489e84a0e334cda3fe9303c6bf6ad /src/mongo/util/processinfo_openbsd.cpp
parent3bef557cab5c17de9374f602c743b87808af590e (diff)
downloadmongo-451dcf99afb7a67e9a5b849e846391402b5928c9.tar.gz
SERVER-47075 Clean up some log lines
* all logs under mongo/transport and mongo/util/net were reviewed and many were cleaned up * all "status"_attr were reviewed and most changed to "error"_attr
Diffstat (limited to 'src/mongo/util/processinfo_openbsd.cpp')
-rw-r--r--src/mongo/util/processinfo_openbsd.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/mongo/util/processinfo_openbsd.cpp b/src/mongo/util/processinfo_openbsd.cpp
index e0c5eb55ab3..5736504ce9c 100644
--- a/src/mongo/util/processinfo_openbsd.cpp
+++ b/src/mongo/util/processinfo_openbsd.cpp
@@ -144,18 +144,20 @@ void ProcessInfo::SystemInfo::collectSystemInfo() {
int status = getSysctlByIDWithDefault(mib, 2, std::string("unknown"), &osVersion);
if (status != 0)
LOGV2(23345,
- "Unable to collect OS Version. (errno: {status} msg: {strerror_status})",
- "status"_attr = status,
- "strerror_status"_attr = strerror(status));
+ "Unable to collect OS Version. (errno: {errno} msg: {msg})",
+ "Unable to collect OS Version.",
+ "errno"_attr = status,
+ "msg"_attr = strerror(status));
mib[0] = CTL_HW;
mib[1] = HW_MACHINE;
status = getSysctlByIDWithDefault(mib, 2, std::string("unknown"), &cpuArch);
if (status != 0)
LOGV2(23346,
- "Unable to collect Machine Architecture. (errno: {status} msg: {strerror_status})",
- "status"_attr = status,
- "strerror_status"_attr = strerror(status));
+ "Unable to collect Machine Architecture. (errno: {errno} msg: {msg})",
+ "Unable to collect Machine Architecture.",
+ "errno"_attr = status,
+ "msg"_attr = strerror(status));
addrSize = cpuArch.find("64") != std::string::npos ? 64 : 32;
uintptr_t numBuffer;
@@ -167,9 +169,9 @@ void ProcessInfo::SystemInfo::collectSystemInfo() {
memLimit = memSize;
if (status != 0)
LOGV2(23347,
- "Unable to collect Physical Memory. (errno: {status} msg: {strerror_status})",
- "status"_attr = status,
- "strerror_status"_attr = strerror(status));
+ "Unable to collect Physical Memory. (errno: {errno} msg: {msg})",
+ "errno"_attr = status,
+ "msg"_attr = strerror(status));
mib[0] = CTL_HW;
mib[1] = HW_NCPU;
@@ -177,9 +179,9 @@ void ProcessInfo::SystemInfo::collectSystemInfo() {
numCores = numBuffer;
if (status != 0)
LOGV2(23348,
- "Unable to collect Number of CPUs. (errno: {status} msg: {strerror_status})",
- "status"_attr = status,
- "strerror_status"_attr = strerror(status));
+ "Unable to collect Number of CPUs. (errno: {errno} msg: {msg})",
+ "errno"_attr = status,
+ "msg"_attr = strerror(status));
pageSize = static_cast<unsigned long long>(sysconf(_SC_PAGESIZE));