diff options
Diffstat (limited to 'src/mongo/util/concurrency/ticketholder.cpp')
-rw-r--r-- | src/mongo/util/concurrency/ticketholder.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/util/concurrency/ticketholder.cpp b/src/mongo/util/concurrency/ticketholder.cpp index a6abd154b2e..13430c48640 100644 --- a/src/mongo/util/concurrency/ticketholder.cpp +++ b/src/mongo/util/concurrency/ticketholder.cpp @@ -35,6 +35,7 @@ #include <iostream> +#include "mongo/logv2/log.h" #include "mongo/util/log.h" #include "mongo/util/str.h" @@ -47,7 +48,9 @@ namespace { * Accepts an errno code, prints its error message, and exits. */ void failWithErrno(int err) { - severe() << "error in Ticketholder: " << errnoWithDescription(err); + LOGV2_FATAL(23121, + "error in Ticketholder: {errnoWithDescription_err}", + "errnoWithDescription_err"_attr = errnoWithDescription(err)); fassertFailed(28604); } @@ -218,7 +221,7 @@ Status TicketHolder::resize(int newSize) { << "more than newSize(" << newSize << ")"; std::string errmsg = ss.str(); - log() << errmsg; + LOGV2(23120, "{errmsg}", "errmsg"_attr = errmsg); return Status(ErrorCodes::BadValue, errmsg); } |