From f153b2b805349776c0d7d48a2f3196141b547f85 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 4 Oct 2023 21:53:46 -0700 Subject: [PATCH] add method/params to duplicate stream (#224) Co-authored-by: Rory Neithinger --- web3_proxy/src/app/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index e0bd63a4..506c8c63 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1708,7 +1708,9 @@ impl Web3ProxyApp { if let Some(x) = x.lock().take() { Ok(jsonrpc::SingleResponse::Stream(x)) } else { - let err: Web3ProxyError = anyhow::anyhow!("stream was already taken. please report this in Discord").into(); + let method = web3_request.request.method(); + let params = web3_request.request.params(); + let err: Web3ProxyError = anyhow::anyhow!("stream was already taken. please report this in Discord. method={:?} params={:?}", method, params).into(); Err(Arc::new(err)) }