fix: Fix logging in SubscriptionSource (#1617) (#1632)

Fixes #1616. 
Cherry pick of #1617 into develop.
This commit is contained in:
Sergey Kuznetsov
2024-09-06 13:48:07 +01:00
committed by GitHub
parent 44c07e7332
commit 1d33b8e88a
3 changed files with 16 additions and 9 deletions

View File

@@ -322,6 +322,7 @@ LoadBalancer::getETLState() noexcept
void
LoadBalancer::chooseForwardingSource()
{
LOG(log_.info()) << "Choosing a new source to forward subscriptions";
hasForwardingSource_ = false;
for (auto& source : sources_) {
if (not hasForwardingSource_ and source->isConnected()) {