Skip to content

Commit

Permalink
Log error conditions when fetching validator list.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrippled authored and bachase committed Nov 27, 2017
1 parent bce9bca commit 8f347a5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/ripple/app/misc/impl/ValidatorSite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ ValidatorSite::onSiteFetch(
"Invalid validator list from " <<
sites_[siteIdx].uri;
}
else if (ListDisposition::unsupported_version == disp)
{
JLOG (j_.warn()) <<
"Unsupported version validator list from " <<
sites_[siteIdx].uri;
}
else
{
BOOST_ASSERT(false);
}

if (body.isMember ("refresh_interval") &&
body["refresh_interval"].isNumeric ())
Expand All @@ -269,6 +279,16 @@ ValidatorSite::onSiteFetch(
sites_[siteIdx].uri;
}
}
else
{
JLOG (j_.warn()) <<
"Problem retrieving from " <<
sites_[siteIdx].uri <<
" " <<
ec.value() <<
":" <<
ec.message();
}

std::lock_guard <std::mutex> lock{state_mutex_};
fetching_ = false;
Expand Down

0 comments on commit 8f347a5

Please sign in to comment.