include error in warning

This commit is contained in:
Bryan Stitt 2023-05-23 15:03:16 -07:00
parent 4c7a7b87cb
commit 55f9c57827

@ -877,7 +877,11 @@ impl Web3Rpcs {
let rate_limit_substrings = ["limit", "exceeded", "quota usage"];
for rate_limit_substr in rate_limit_substrings {
if error_msg.contains(rate_limit_substr) {
warn!("rate limited by {}", skip_rpcs.last().unwrap());
warn!(
"rate limited ({}) by {}",
error_msg,
skip_rpcs.last().unwrap()
);
continue;
}
}