From 59a5cd9ca8c2848352e8015169e3bb9467cb1801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20D=C3=B6hring?= Date: Thu, 14 Sep 2023 14:48:08 +0200 Subject: [PATCH] SERVER-68548: Backport - check quiet globalServerParam before logging --- src/mongo/transport/transport_layer_asio.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mongo/transport/transport_layer_asio.cpp b/src/mongo/transport/transport_layer_asio.cpp index f91c5a0a4c9a5..2fd7dfcb25ada 100644 --- a/src/mongo/transport/transport_layer_asio.cpp +++ b/src/mongo/transport/transport_layer_asio.cpp @@ -319,9 +319,13 @@ 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"); + } }); } }