summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/init.cpp
diff options
context:
space:
mode:
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);