summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo_windows.cpp
diff options
context:
space:
mode:
authorAdam Cooper <adam.cooper@mongodb.com>2020-09-08 13:31:59 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-08 19:36:37 +0000
commit277782e54a6ccd4dc783b53d5dface21ebaed938 (patch)
tree13e2562a4cfd844f9074885371a65ef44e08f306 /src/mongo/util/processinfo_windows.cpp
parentc1808dd194575ea7a49893e782df50fe29c00bd1 (diff)
downloadmongo-277782e54a6ccd4dc783b53d5dface21ebaed938.tar.gz
SERVER-6777 Eliminate all direct use of cout/stdout and cerr/stderr
Diffstat (limited to 'src/mongo/util/processinfo_windows.cpp')
-rw-r--r--src/mongo/util/processinfo_windows.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/util/processinfo_windows.cpp b/src/mongo/util/processinfo_windows.cpp
index aeff1ba1ae9..31c0908fb32 100644
--- a/src/mongo/util/processinfo_windows.cpp
+++ b/src/mongo/util/processinfo_windows.cpp
@@ -367,9 +367,11 @@ bool ProcessInfo::blockInMemory(const void* start) {
if (bstat) {
for (int i=0; i<30; i++) {
if (wiex[i].BasicInfo.FaultingPc == 0) break;
- cout << "faulting pc = " << wiex[i].BasicInfo.FaultingPc <<
- " address = " << wiex[i].BasicInfo.FaultingVa <<
- " thread id = " << wiex[i].FaultingThreadId << endl;
+ LOGV2(677707,
+ "Encountered a page fault",
+ "faulting_pc"_attr = wiex[i].BasicInfo.FaultingPcm,
+ "address"_attr = wiex[i].BasicInfo.FaultingVa,
+ "thread_id"_attr = wiex[i].FaultingThreadId);
}
}
#endif