Skip to content

Commit b323984

Browse files
qyryqGazizonoki
authored andcommitted
Moved commit "ydb_federated_topic: add SelfLocation to FederationState log" from ydb repo
1 parent b7f54d3 commit b323984

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/client/federated_topic/impl/federation_observer.cpp

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

181181
IOutputStream& operator<<(IOutputStream& out, TFederatedDbState const& state) {
182-
out << "{ Status: " << state.Status.GetStatus();
182+
out << "{ Status: " << state.Status.GetStatus()
183+
<< " SelfLocation: \"" << state.SelfLocation << '"';
183184
if (auto const& issues = state.Status.GetIssues(); !issues.Empty()) {
184-
out << ", Issues: { " << issues.ToOneLineString() << " }";
185+
out << " Issues: { " << issues.ToOneLineString() << " }";
185186
}
186187
if (!state.DbInfos.empty()) {
187-
out << ", DbInfos: { ";
188+
out << " DbInfos: [ ";
188189
bool first = true;
189190
for (auto const& info : state.DbInfos) {
190191
if (first) {
191192
first = false;
192193
} else {
193-
out << ", ";
194+
out << " ";
194195
}
195196
out << "{ " << info->ShortDebugString() << " }";
196197
}
197-
out << " }";
198+
out << " ]";
198199
}
199200
return out << " }";
200201
}

0 commit comments

Comments
 (0)