diff options
author | Ilia Shakhov <pixcc@ydb.tech> | 2024-06-19 23:09:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 23:09:47 +0300 |
commit | 62869e935a423d6e7e714313aa480ce10986e1d2 (patch) | |
tree | 47803d9509abf7462d12762ba591619be1a5bc62 | |
parent | 20230b56f0fefaa72a87378372b1482a0730468c (diff) | |
download | ydb-62869e935a423d6e7e714313aa480ce10986e1d2.tar.gz |
Add node name logging (#5754)
-rw-r--r-- | ydb/core/config/init/init.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ydb/core/config/init/init.cpp b/ydb/core/config/init/init.cpp index 3fe6c72693..9890ccabc4 100644 --- a/ydb/core/config/init/init.cpp +++ b/ydb/core/config/init/init.cpp @@ -329,6 +329,11 @@ class TDefaultNodeBrokerClient env); if (result.IsSuccess()) { logger.Out() << "Success. Registered via discovery service as " << result.GetNodeId() << Endl; + logger.Out() << "Node name: "; + if (result.HasNodeName()) { + logger.Out() << result.GetNodeName(); + } + logger.Out() << Endl; break; } logger.Err() << "Registration error: " << static_cast<NYdb::TStatus>(result) << Endl; |