diff options
author | Ilia Shakhov <pixcc@ydb.tech> | 2025-05-30 15:56:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-30 12:56:23 +0000 |
commit | fdaa9ab9baff35492ab2ce4b2746d4ff21f48ee5 (patch) | |
tree | 2e3a96578ea6218f644be96920a4ecf85421fff2 | |
parent | c20afa29085cf7120c2a0435d9ef0133f904ca76 (diff) | |
download | ydb-fdaa9ab9baff35492ab2ce4b2746d4ff21f48ee5.tar.gz |
Show node name in start logs only when it is appropriate (#19040)
-rw-r--r-- | ydb/core/config/init/init.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ydb/core/config/init/init.cpp b/ydb/core/config/init/init.cpp index 18da922dbbc..0a9134ef4e9 100644 --- a/ydb/core/config/init/init.cpp +++ b/ydb/core/config/init/init.cpp @@ -245,11 +245,9 @@ class TDefaultNodeBrokerClient env); if (result.IsSuccess()) { logger.Out() << "Success. Registered as " << result.GetNodeId() << Endl; - logger.Out() << "Node name: "; if (result.HasNodeName()) { - logger.Out() << result.GetNodeName(); + logger.Out() << "Node name: " << result.GetNodeName() << Endl; } - logger.Out() << Endl; break; } logger.Err() << "Registration error: " << static_cast<NYdb::TStatus>(result) << Endl; |