Skip to content

Commit 8bfdaf6

Browse files
authored
ydb_federated_topic: add SelfLocation to FederationState log (#10038)
1 parent 1a8906f commit 8bfdaf6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ydb/public/sdk/cpp/client/ydb_federated_topic/impl/federation_observer.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,23 @@ void TFederatedDbObserverImpl::OnFederationDiscovery(TStatus&& status, Ydb::Fede
180180
}
181181

182182
IOutputStream& operator<<(IOutputStream& out, TFederatedDbState const& state) {
183-
out << "{ Status: " << state.Status.GetStatus();
183+
out << "{ Status: " << state.Status.GetStatus()
184+
<< " SelfLocation: \"" << state.SelfLocation << '"';
184185
if (auto const& issues = state.Status.GetIssues(); !issues.Empty()) {
185-
out << ", Issues: { " << issues.ToOneLineString() << " }";
186+
out << " Issues: { " << issues.ToOneLineString() << " }";
186187
}
187188
if (!state.DbInfos.empty()) {
188-
out << ", DbInfos: { ";
189+
out << " DbInfos: [ ";
189190
bool first = true;
190191
for (auto const& info : state.DbInfos) {
191192
if (first) {
192193
first = false;
193194
} else {
194-
out << ", ";
195+
out << " ";
195196
}
196197
out << "{ " << info->ShortDebugString() << " }";
197198
}
198-
out << " }";
199+
out << " ]";
199200
}
200201
return out << " }";
201202
}

0 commit comments

Comments
 (0)