summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Rayner <adam.rayner@gmail.com>2022-08-23 22:00:28 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-23 22:40:06 +0000
commitb60279a4225e4b40e2394780cf4aee9e7e572cc9 (patch)
tree98dd9bf67b533cd36494919ea85cc6bc29a0f688
parent93e86e0c6f45fd8b6fb1281c5ddae3e4622d91e7 (diff)
downloadmongo-b60279a4225e4b40e2394780cf4aee9e7e572cc9.tar.gz
SERVER-68548: check quiet globalServerParam before logging
-rw-r--r--src/mongo/transport/transport_layer_asio.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/transport/transport_layer_asio.cpp b/src/mongo/transport/transport_layer_asio.cpp
index 89627bd6c8c..a1ceeae65c8 100644
--- a/src/mongo/transport/transport_layer_asio.cpp
+++ b/src/mongo/transport/transport_layer_asio.cpp
@@ -322,9 +322,15 @@ void TransportLayerASIO::TimerService::start() {
auto precondition = State::kInitialized;
if (_state.compareAndSwap(&precondition, State::kStarted)) {
_thread = _spawn([reactor = _reactor] {
- LOGV2_INFO(5490002, "Started a new thread for the timer service");
+ if (!serverGlobalParams.quiet.load()) {
+ LOGV2_INFO(5490002, "Started a new thread for the timer service");
+ }
+
reactor->run();
- LOGV2_INFO(5490003, "Returning from the timer service thread");
+
+ if (!serverGlobalParams.quiet.load()) {
+ LOGV2_INFO(5490003, "Returning from the timer service thread");
+ }
});
}
}