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 committed Oct 9, 2017
1 parent 3e5490e commit 26ebad8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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,12 @@ 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;
}

if (body.isMember ("refresh_interval") &&
body["refresh_interval"].isNumeric ())
Expand All @@ -269,6 +275,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 26ebad8

Please sign in to comment.