diff options
Diffstat (limited to 'src/mongo/transport/service_executor_test.cpp')
-rw-r--r-- | src/mongo/transport/service_executor_test.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/transport/service_executor_test.cpp b/src/mongo/transport/service_executor_test.cpp index 645752d90d0..af4e8ca7b49 100644 --- a/src/mongo/transport/service_executor_test.cpp +++ b/src/mongo/transport/service_executor_test.cpp @@ -34,6 +34,7 @@ #include "boost/optional.hpp" #include "mongo/db/service_context.h" +#include "mongo/logv2/log.h" #include "mongo/transport/service_executor_adaptive.h" #include "mongo/transport/service_executor_synchronous.h" #include "mongo/transport/service_executor_task_names.h" @@ -102,7 +103,9 @@ public: try { _ioContext.run_for(time.toSystemDuration()); } catch (...) { - severe() << "Uncaught exception in reactor: " << exceptionToStatus(); + LOGV2_FATAL(22985, + "Uncaught exception in reactor: {exceptionToStatus}", + "exceptionToStatus"_attr = exceptionToStatus()); fassertFailed(50476); } } @@ -114,7 +117,7 @@ public: void drain() override final { _ioContext.restart(); while (_ioContext.poll()) { - LOG(1) << "Draining remaining work in reactor."; + LOGV2_DEBUG(22984, 1, "Draining remaining work in reactor."); } _ioContext.stop(); } |