aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorermolovd <ermolovd@yandex-team.com>2024-11-01 13:33:25 +0300
committerermolovd <ermolovd@yandex-team.com>2024-11-01 13:55:38 +0300
commitac1a5780f758fa4c1d47fb64dfdc68e782941ad3 (patch)
treece78c435d7b74f959566900e9f39822435348347
parent78b7133a26d98d9c414c6b7a74dc38b0c0378274 (diff)
downloadydb-ac1a5780f758fa4c1d47fb64dfdc68e782941ad3.tar.gz
Delay starting stuff in TLogManager::Configure
TLogManager produces a bunch of log messages during startup. It was possible that these messages were with default configuration (i.e. to stderr). commit_hash:6f78951390a000e0a896327741bbe3bdb67aa607
-rw-r--r--yt/yt/core/logging/log_manager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt/yt/core/logging/log_manager.cpp b/yt/yt/core/logging/log_manager.cpp
index 5694698800..e7d8252222 100644
--- a/yt/yt/core/logging/log_manager.cpp
+++ b/yt/yt/core/logging/log_manager.cpp
@@ -410,8 +410,6 @@ public:
return;
}
- EnsureStarted();
-
TConfigEvent event{
.Instant = GetCpuInstant(),
.Config = std::move(config),
@@ -421,6 +419,7 @@ public:
auto future = event.Promise.ToFuture();
PushEvent(std::move(event));
+ EnsureStarted();
DequeueExecutor_->ScheduleOutOfBand();