Skip to content

Commit 6eb6b83

Browse files
authored
Do not use YQL_LOG during YQL plugin initialization (#6798)
1 parent f407047 commit 6eb6b83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/library/yql/yt/native/plugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ class TYqlPlugin
356356
ProgramFactory_->SetFileStorage(FileStorage_);
357357
ProgramFactory_->SetUrlPreprocessing(MakeIntrusive<NYql::TUrlPreprocessing>(GatewaysConfig_));
358358
} catch (const std::exception& ex) {
359-
YQL_LOG(FATAL) << "Unexpected exception while initializing YQL plugin: " << ex.what();
359+
// NB: YQL_LOG may be not initialized yet (for example, during singletons config parse),
360+
// so we use std::cerr instead of it.
361+
std::cerr << "Unexpected exception while initializing YQL plugin: " << ex.what() << std::endl;
360362
exit(1);
361363
}
362364
YQL_LOG(INFO) << "YQL plugin initialized";

0 commit comments

Comments
 (0)