From 55f9c5782707bc02fb63f3017688324fb433747b Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 23 May 2023 15:03:16 -0700 Subject: [PATCH] include error in warning --- web3_proxy/src/rpcs/many.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/many.rs b/web3_proxy/src/rpcs/many.rs index 310a5686..5bad1334 100644 --- a/web3_proxy/src/rpcs/many.rs +++ b/web3_proxy/src/rpcs/many.rs @@ -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; } }