Skip to content

Commit ba380c5

Browse files
authored
fix: Add log on value is null (#7325)
Co-authored-by: Danil Nemirovsky <[email protected]>
1 parent ba7408c commit ba380c5

File tree

1 file changed

+14
-1
lines changed
  • rust/main/chains/hyperlane-ethereum/src/rpc_clients

1 file changed

+14
-1
lines changed

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)