Skip to content

Commit 26ebad8

Browse files
author
Mark Travis
committed
Log error conditions when fetching validator list.
1 parent 3e5490e commit 26ebad8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/ripple/app/misc/impl/ValidatorSite.cpp

+16
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ ValidatorSite::onSiteFetch(
254254
"Invalid validator list from " <<
255255
sites_[siteIdx].uri;
256256
}
257+
else if (ListDisposition::unsupported_version == disp)
258+
{
259+
JLOG (j_.warn()) <<
260+
"Unsupported version validator list from " <<
261+
sites_[siteIdx].uri;
262+
}
257263

258264
if (body.isMember ("refresh_interval") &&
259265
body["refresh_interval"].isNumeric ())
@@ -269,6 +275,16 @@ ValidatorSite::onSiteFetch(
269275
sites_[siteIdx].uri;
270276
}
271277
}
278+
else
279+
{
280+
JLOG (j_.warn()) <<
281+
"Problem retrieving from " <<
282+
sites_[siteIdx].uri <<
283+
" " <<
284+
ec.value() <<
285+
":" <<
286+
ec.message();
287+
}
272288

273289
std::lock_guard <std::mutex> lock{state_mutex_};
274290
fetching_ = false;

0 commit comments

Comments
 (0)