summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Rayner <adam.rayner@gmail.com>2022-09-15 17:33:22 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-15 21:44:33 +0000
commitcfe4fe45d31644ff6bfda613169245c7f9a7e2e9 (patch)
tree95ee45cd45aa7527cf969236409149fe78d72935
parent196dbd6083c683916d7ff7fea276c15390b4601b (diff)
downloadmongo-cfe4fe45d31644ff6bfda613169245c7f9a7e2e9.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 387a0943d10..2a1ecc5ccaf 100644
--- a/src/mongo/transport/transport_layer_asio.cpp
+++ b/src/mongo/transport/transport_layer_asio.cpp
@@ -311,9 +311,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");
+ }
});
}
}