Skip to content

Commit 7aac9ab

Browse files
committed
add log
1 parent 862c84c commit 7aac9ab

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

crates/pbs/src/mev_boost/submit_block.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ async fn submit_block_with_timeout(
122122
}
123123

124124
Err(err) if err.is_not_found() && matches!(api_version, BuilderApiVersion::V2) => {
125-
warn!("relay does not support v2 endpoint, retrying with v1");
125+
warn!(
126+
relay_id = relay.id.as_ref(),
127+
"relay does not support v2 endpoint, retrying with v1"
128+
);
126129
url = relay.submit_block_url(BuilderApiVersion::V1)?;
127130
}
128131

@@ -192,6 +195,13 @@ async fn send_submit_block(
192195

193196
if api_version != &BuilderApiVersion::V1 {
194197
// v2 response is going to be empty, so just break here
198+
debug!(
199+
relay_id = relay.id.as_ref(),
200+
retry,
201+
latency = ?request_latency,
202+
"successful request"
203+
);
204+
195205
return Ok(None);
196206
}
197207

0 commit comments

Comments
 (0)