We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435bb5a commit f6a7f46Copy full SHA for f6a7f46
yt/cpp/mapreduce/client/init.cpp
@@ -180,12 +180,15 @@ void CommonInitialize(TGuard<TMutex>& g)
180
auto logPath = TConfig::Get()->LogPath;
181
if (logPath.empty()) {
182
if (TConfig::Get()->LogUseCore) {
183
+ SetUseCoreLog();
184
+ if (!NLogging::TLogManager::Get()->IsDefaultConfigured()) {
185
+ return;
186
+ }
187
auto coreLoggingConfig = NLogging::TLogManagerConfig::CreateStderrLogger(ToCoreLogLevel(logLevel));
188
for (const auto& rule : coreLoggingConfig->Rules) {
189
rule->ExcludeCategories = TConfig::Get()->LogExcludeCategories;
190
}
191
NLogging::TLogManager::Get()->Configure(coreLoggingConfig);
- SetUseCoreLog();
192
} else {
193
auto logger = CreateStdErrLogger(logLevel);
194
SetLogger(logger);
0 commit comments