summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Rayner <adam.rayner@gmail.com>2022-09-16 14:18:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-16 14:48:48 +0000
commitf7f6c6928320873089b443da007de119b926f605 (patch)
treeb3b63fe6a268c1bc7f5b15d9e444a3a2c3a73931
parentfc0a572b03ef5c589f6e2f89380a83d0142bcba7 (diff)
downloadmongo-f7f6c6928320873089b443da007de119b926f605.tar.gz
SERVER-68548: Backport - check quiet globalServerParam before logging
-rw-r--r--src/mongo/transport/transport_layer_asio.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/transport/transport_layer_asio.cpp b/src/mongo/transport/transport_layer_asio.cpp
index 85b5e816930..8656fcef024 100644
--- a/src/mongo/transport/transport_layer_asio.cpp
+++ b/src/mongo/transport/transport_layer_asio.cpp
@@ -316,9 +316,14 @@ void TransportLayerASIO::TimerService::start() {
auto precondition = State::kInitialized;
if (_state.compareAndSwap(&precondition, State::kStarted)) {
_thread = stdx::thread([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");
+ }
});
}
}