diff options
author | Yves Duhem <yves.duhem@mongodb.com> | 2018-07-19 12:18:14 -0400 |
---|---|---|
committer | Yves Duhem <yves.duhem@mongodb.com> | 2018-07-19 15:06:56 -0400 |
commit | 6e30589695a5f1837decdb1010590e4c92f77343 (patch) | |
tree | 6041db120bb130664f75da31d4cf452731e06332 | |
parent | 5c46722a1844dd92abbca24b551f723dd9786fc6 (diff) | |
download | mongo-6e30589695a5f1837decdb1010590e4c92f77343.tar.gz |
SERVER-36010 Use severe() for Windows exceptions logs
(cherry picked from commit 6403c6a71e03cee4f6bebbc67b06ba46fbf632c4)
-rw-r--r-- | src/mongo/util/exception_filter_win32.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/util/exception_filter_win32.cpp b/src/mongo/util/exception_filter_win32.cpp index 93167567339..608c7c00068 100644 --- a/src/mongo/util/exception_filter_win32.cpp +++ b/src/mongo/util/exception_filter_win32.cpp @@ -129,8 +129,8 @@ LONG WINAPI exceptionFilter(struct _EXCEPTION_POINTERS* excPointers) { sizeof(addressString), "0x%p", excPointers->ExceptionRecord->ExceptionAddress); - log() << "*** unhandled exception " << exceptionString << " at " << addressString - << ", terminating" << std::endl; + severe() << "*** unhandled exception " << exceptionString << " at " << addressString + << ", terminating" << std::endl; if (excPointers->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION) { ULONG acType = excPointers->ExceptionRecord->ExceptionInformation[0]; const char* acTypeString; @@ -152,10 +152,10 @@ LONG WINAPI exceptionFilter(struct _EXCEPTION_POINTERS* excPointers) { sizeof(addressString), " 0x%p", excPointers->ExceptionRecord->ExceptionInformation[1]); - log() << "*** access violation was a " << acTypeString << addressString << std::endl; + severe() << "*** access violation was a " << acTypeString << addressString << std::endl; } - log() << "*** stack trace for unhandled exception:" << std::endl; + severe() << "*** stack trace for unhandled exception:" << std::endl; // Create a copy of context record because printWindowsStackTrace will mutate it. CONTEXT contextCopy(*(excPointers->ContextRecord)); @@ -165,7 +165,7 @@ LONG WINAPI exceptionFilter(struct _EXCEPTION_POINTERS* excPointers) { doMinidumpWithException(excPointers); // Don't go through normal shutdown procedure. It may make things worse. - log() << "*** immediate exit due to unhandled exception" << std::endl; + severe() << "*** immediate exit due to unhandled exception" << std::endl; quickExit(EXIT_ABRUPT); // We won't reach here |