Skip to content

Commit 08acb5a

Browse files
ametendanwt
authored andcommitted
fix: Add log on value is null (hyperlane-xyz#7325)
Co-authored-by: Danil Nemirovsky <4614623+ameten@users.noreply.github.com>
1 parent ebdfbf1 commit 08acb5a

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

  • rust/main/chains/hyperlane-ethereum/src/rpc_clients

rust/main/chains/hyperlane-ethereum/src/rpc_clients/fallback.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,20 @@ where
220220
);
221221

222222
match categorize_client_response(provider_host.as_str(), method, resp) {
223-
IsOk(v) => return Ok(serde_json::from_value(v)?),
223+
IsOk(v) => {
224+
// Add log to identify content of v when no tx receipt is found
225+
if v.is_null() {
226+
tracing::debug!(
227+
fallback_count = idx,
228+
provider_index = priority.index,
229+
provider_host = provider_host.as_str(),
230+
method,
231+
?v,
232+
"fallback_request: value is null"
233+
);
234+
}
235+
return Ok(serde_json::from_value(v)?);
236+
}
224237
RetryableErr(e) | RateLimitErr(e) => errors.push(e.into()),
225238
NonRetryableErr(e) => return Err(e.into()),
226239
}

0 commit comments

Comments
 (0)