summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/init.cpp
diff options
context:
space:
mode:
authorhiddenpath <[email protected]>2025-03-05 10:27:23 +0300
committerhiddenpath <[email protected]>2025-03-05 11:12:51 +0300
commiteffac041cef419e2d5347d7288e1156950df939b (patch)
tree5769dd489c1af29837b8d2980c2b2c283de0e039 /yt/cpp/mapreduce/client/init.cpp
parent4780a580c1ea59e1089f580a0910ba157193e362 (diff)
YT-23616: Disable specific categories only when using CoreLog
commit_hash:9334e3dd45a476ba93f6342efd5361002046d228
Diffstat (limited to 'yt/cpp/mapreduce/client/init.cpp')
-rw-r--r--yt/cpp/mapreduce/client/init.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/yt/cpp/mapreduce/client/init.cpp b/yt/cpp/mapreduce/client/init.cpp
index 04c4a4f0071..e971c9ee0e8 100644
--- a/yt/cpp/mapreduce/client/init.cpp
+++ b/yt/cpp/mapreduce/client/init.cpp
@@ -179,13 +179,12 @@ void CommonInitialize(TGuard<TMutex>& g)
auto logPath = TConfig::Get()->LogPath;
if (logPath.empty()) {
- auto coreLoggingConfig = NLogging::TLogManagerConfig::CreateStderrLogger(ToCoreLogLevel(logLevel));
- for (const auto& rule : coreLoggingConfig->Rules) {
- rule->ExcludeCategories = TConfig::Get()->LogExcludeCategories;
- }
- NLogging::TLogManager::Get()->Configure(coreLoggingConfig);
-
if (TConfig::Get()->LogUseCore) {
+ auto coreLoggingConfig = NLogging::TLogManagerConfig::CreateStderrLogger(ToCoreLogLevel(logLevel));
+ for (const auto& rule : coreLoggingConfig->Rules) {
+ rule->ExcludeCategories = TConfig::Get()->LogExcludeCategories;
+ }
+ NLogging::TLogManager::Get()->Configure(coreLoggingConfig);
SetUseCoreLog();
} else {
auto logger = CreateStdErrLogger(logLevel);